equal
deleted
inserted
replaced
39 static byte _network_clients_connected = 0; |
39 static byte _network_clients_connected = 0; |
40 // The index counter for new clients (is never decreased) |
40 // The index counter for new clients (is never decreased) |
41 static uint16 _network_client_index = NETWORK_SERVER_INDEX + 1; |
41 static uint16 _network_client_index = NETWORK_SERVER_INDEX + 1; |
42 |
42 |
43 /* Some externs / forwards */ |
43 /* Some externs / forwards */ |
44 extern void ShowJoinStatusWindow(); |
44 extern void ShowJoinStatusWindow(void); |
45 extern void StateGameLoop(); |
45 extern void StateGameLoop(void); |
46 extern uint GetCurrentCurrencyRate(); |
46 extern uint GetCurrentCurrencyRate(void); |
47 |
47 |
48 // Function that looks up the CI for a given client-index |
48 // Function that looks up the CI for a given client-index |
49 NetworkClientInfo *NetworkFindClientInfoFromIndex(uint16 client_index) |
49 NetworkClientInfo *NetworkFindClientInfoFromIndex(uint16 client_index) |
50 { |
50 { |
51 NetworkClientInfo *ci; |
51 NetworkClientInfo *ci; |
876 } |
876 } |
877 |
877 |
878 /* Generates the list of manually added hosts from NetworkGameList and |
878 /* Generates the list of manually added hosts from NetworkGameList and |
879 * dumps them into the array _network_host_list. This array is needed |
879 * dumps them into the array _network_host_list. This array is needed |
880 * by the function that generates the config file. */ |
880 * by the function that generates the config file. */ |
881 void NetworkRebuildHostList() |
881 void NetworkRebuildHostList(void) |
882 { |
882 { |
883 uint i = 0; |
883 uint i = 0; |
884 NetworkGameList *item = _network_game_list; |
884 NetworkGameList *item = _network_game_list; |
885 while (item != NULL && i != lengthof(_network_host_list)) { |
885 while (item != NULL && i != lengthof(_network_host_list)) { |
886 if (item->manually) |
886 if (item->manually) |