src/network/network_server.cpp
changeset 9659 187142ff9b6c
parent 9652 0405e98d8e96
child 9663 bcc853b3d1ac
--- a/src/network/network_server.cpp	Fri Jul 18 16:26:51 2008 +0000
+++ b/src/network/network_server.cpp	Fri Jul 18 16:40:29 2008 +0000
@@ -89,8 +89,6 @@
 	NetworkPopulateCompanyInfo();
 
 	FOR_ALL_PLAYERS(player) {
-		if (!player->is_active) continue;
-
 		p = NetworkSend_Init(PACKET_SERVER_COMPANY_INFO);
 
 		p->Send_uint8 (NETWORK_COMPANY_INFO_VERSION);
@@ -1299,12 +1297,9 @@
 	uint i;
 	uint16 months_empty;
 
+	memset(_network_player_info, 0, sizeof(_network_player_info));
+
 	FOR_ALL_PLAYERS(p) {
-		if (!p->is_active) {
-			memset(&_network_player_info[p->index], 0, sizeof(NetworkPlayerInfo));
-			continue;
-		}
-
 		// Clean the info but not the password
 		ttd_strlcpy(password, _network_player_info[p->index].password, sizeof(password));
 		months_empty = _network_player_info[p->index].months_empty;
@@ -1436,7 +1431,7 @@
 	/* Go through all the comapnies */
 	FOR_ALL_PLAYERS(p) {
 		/* Skip the non-active once */
-		if (!p->is_active || p->is_ai) continue;
+		if (p->is_ai) continue;
 
 		if (!clients_in_company[p->index]) {
 			/* The company is empty for one month more */