forked from mirror/OpenTTD
(svn r6787) -Codechange: Use PLAYER_NEW_COMPANY as a player identifier wishing to become a
new player instead of a 0.
This commit is contained in:
@@ -480,7 +480,10 @@ int ttd_main(int argc, char *argv[])
|
||||
|
||||
ParseConnectionString(&player, &port, network_conn);
|
||||
|
||||
if (player != NULL) _network_playas = atoi(player);
|
||||
if (player != NULL) {
|
||||
_network_playas = atoi(player);
|
||||
if (_network_playas == 0) _network_playas = PLAYER_NEW_COMPANY;
|
||||
}
|
||||
if (port != NULL) rport = atoi(port);
|
||||
|
||||
LoadIntroGame();
|
||||
|
Reference in New Issue
Block a user