(svn r11556) -Feature: allow setting a default password for new companies in network games.

This commit is contained in:
rubidium
2007-12-02 14:48:26 +00:00
parent 527b72749d
commit d9081ad3f5
46 changed files with 165 additions and 75 deletions

View File

@@ -848,6 +848,10 @@ CommandCost CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (_local_player != _network_playas && _network_playas == p->index) {
assert(_local_player == PLAYER_SPECTATOR);
SetLocalPlayer(p->index);
if (!StrEmpty(_network_default_company_pass)) {
char *password = _network_default_company_pass;
NetworkChangeCompanyPassword(1, &password);
}
MarkWholeScreenDirty();
}