src/main_gui.cpp
changeset 10792 95b6eb9fcc9e
parent 10775 7061477bfbcf
child 10882 f047317b321c
equal deleted inserted replaced
10791:0f3e94733e65 10792:95b6eb9fcc9e
    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)