equal
deleted
inserted
replaced
46 static int _rename_what = -1; |
46 static int _rename_what = -1; |
47 |
47 |
48 void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2) |
48 void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2) |
49 { |
49 { |
50 #ifdef ENABLE_NETWORK |
50 #ifdef ENABLE_NETWORK |
51 if (!success || !_settings.economy.give_money) return; |
51 if (!success || !_settings_game.economy.give_money) return; |
52 |
52 |
53 char msg[20]; |
53 char msg[20]; |
54 /* Inform the player of this action */ |
54 /* Inform the player of this action */ |
55 snprintf(msg, sizeof(msg), "%d", p1); |
55 snprintf(msg, sizeof(msg), "%d", p1); |
56 |
56 |
342 bool teamchat = false; |
342 bool teamchat = false; |
343 |
343 |
344 if (cio == NULL) break; |
344 if (cio == NULL) break; |
345 |
345 |
346 /* Only players actually playing can speak to team. Eg spectators cannot */ |
346 /* Only players actually playing can speak to team. Eg spectators cannot */ |
347 if (_settings.gui.prefer_teamchat && IsValidPlayer(cio->client_playas)) { |
347 if (_settings_client.gui.prefer_teamchat && IsValidPlayer(cio->client_playas)) { |
348 const NetworkClientInfo *ci; |
348 const NetworkClientInfo *ci; |
349 FOR_ALL_ACTIVE_CLIENT_INFOS(ci) { |
349 FOR_ALL_ACTIVE_CLIENT_INFOS(ci) { |
350 if (ci->client_playas == cio->client_playas && ci != cio) { |
350 if (ci->client_playas == cio->client_playas && ci != cio) { |
351 teamchat = true; |
351 teamchat = true; |
352 break; |
352 break; |