summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-15 23:48:34 +0000
committerDarkvater <darkvater@openttd.org>2006-10-15 23:48:34 +0000
commitd5baf25923869c6ec06ed31f387d8e59bf76066d (patch)
treeb6419eb336f33a543168cce79ecd4086674ed9c6 /openttd.c
parent7cac86186e8333fc98d2cd7eb863c6a7e5a58378 (diff)
downloadopenttd-d5baf25923869c6ec06ed31f387d8e59bf76066d.tar.xz
(svn r6787) -Codechange: Use PLAYER_NEW_COMPANY as a player identifier wishing to become a
new player instead of a 0.
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openttd.c b/openttd.c
index 7bbd25023..dc046c9ab 100644
--- a/openttd.c
+++ b/openttd.c
@@ -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();