openttd.c
changeset 4861 2119f5d46e41
parent 4854 151cdb683187
child 4878 4d4f76a898fd
equal deleted inserted replaced
4860:6685aaf6aae0 4861:2119f5d46e41
   478 
   478 
   479 			rport = NETWORK_DEFAULT_PORT;
   479 			rport = NETWORK_DEFAULT_PORT;
   480 
   480 
   481 			ParseConnectionString(&player, &port, network_conn);
   481 			ParseConnectionString(&player, &port, network_conn);
   482 
   482 
   483 			if (player != NULL) _network_playas = atoi(player);
   483 			if (player != NULL) {
       
   484 				_network_playas = atoi(player);
       
   485 				if (_network_playas == 0) _network_playas = PLAYER_NEW_COMPANY;
       
   486 			}
   484 			if (port != NULL) rport = atoi(port);
   487 			if (port != NULL) rport = atoi(port);
   485 
   488 
   486 			LoadIntroGame();
   489 			LoadIntroGame();
   487 			_switch_mode = SM_NONE;
   490 			_switch_mode = SM_NONE;
   488 			NetworkClientConnectGame(network_conn, rport);
   491 			NetworkClientConnectGame(network_conn, rport);