comparison src/main_gui.cpp @ 9428:ba7cdcf21f4c draft

(svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers.
author rubidium <rubidium@openttd.org>
date Fri, 30 May 2008 18:20:26 +0000
parents 512ea64da840
children cbb53dc04d5b
comparison
equal deleted inserted replaced
9427:0e29bbce6207 9428:ba7cdcf21f4c
32 #include "statusbar_gui.h" 32 #include "statusbar_gui.h"
33 #include "variables.h" 33 #include "variables.h"
34 #include "tilehighlight_func.h" 34 #include "tilehighlight_func.h"
35 35
36 #include "network/network.h" 36 #include "network/network.h"
37 #include "network/network_data.h" 37 #include "network/network_func.h"
38 #include "network/network_client.h"
39 #include "network/network_server.h"
40 #include "network/network_gui.h" 38 #include "network/network_gui.h"
41 39
42 #include "table/sprites.h" 40 #include "table/sprites.h"
43 #include "table/strings.h" 41 #include "table/strings.h"
44 42
53 char msg[20]; 51 char msg[20];
54 /* Inform the player of this action */ 52 /* Inform the player of this action */
55 snprintf(msg, sizeof(msg), "%d", p1); 53 snprintf(msg, sizeof(msg), "%d", p1);
56 54
57 if (!_network_server) { 55 if (!_network_server) {
58 SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg); 56 NetworkClientSendChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg);
59 } else { 57 } else {
60 NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg, NETWORK_SERVER_INDEX); 58 NetworkServerSendChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg, NETWORK_SERVER_INDEX);
61 } 59 }
62 #endif /* ENABLE_NETWORK */ 60 #endif /* ENABLE_NETWORK */
63 } 61 }
64 62
65 void HandleOnEditText(const char *str) 63 void HandleOnEditText(const char *str)