equal
deleted
inserted
replaced
59 extern bool GenerateTowns(); |
59 extern bool GenerateTowns(); |
60 |
60 |
61 |
61 |
62 void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2) |
62 void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2) |
63 { |
63 { |
|
64 #ifdef ENABLE_NETWORK |
64 if (!success) return; |
65 if (!success) return; |
65 |
66 |
66 char msg[20]; |
67 char msg[20]; |
67 /* Inform the player of this action */ |
68 /* Inform the player of this action */ |
68 snprintf(msg, sizeof(msg), "%d", p1); |
69 snprintf(msg, sizeof(msg), "%d", p1); |
70 if (!_network_server) { |
71 if (!_network_server) { |
71 SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg); |
72 SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg); |
72 } else { |
73 } else { |
73 NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg, NETWORK_SERVER_INDEX); |
74 NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg, NETWORK_SERVER_INDEX); |
74 } |
75 } |
|
76 #endif /* ENABLE_NETWORK */ |
75 } |
77 } |
76 |
78 |
77 void HandleOnEditText(const char *str) |
79 void HandleOnEditText(const char *str) |
78 { |
80 { |
79 int id = _rename_id; |
81 int id = _rename_id; |