From b3df5e5477de9510382646057f7848e0d1dadef3 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 21 Oct 2006 22:33:45 +0000 Subject: (svn r6877) -Fix r6876 +add main_gui.c --- main_gui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main_gui.c b/main_gui.c index 91e0e1ff8..1a5cacbac 100644 --- a/main_gui.c +++ b/main_gui.c @@ -83,9 +83,9 @@ void HandleOnEditText(WindowEvent *e) snprintf(msg, sizeof(msg), "%d", money); if (!_network_server) { - SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_PLAYER, id + 1, msg); + SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, id + 1, msg); } else { - NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_PLAYER, id + 1, msg, NETWORK_SERVER_INDEX); + NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, id + 1, msg, NETWORK_SERVER_INDEX); } break; } @@ -2342,7 +2342,7 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) } } - ShowNetworkChatQueryWindow(has_team ? DESTTYPE_PLAYER : DESTTYPE_BROADCAST, cio->client_playas); + ShowNetworkChatQueryWindow(has_team ? DESTTYPE_TEAM : DESTTYPE_BROADCAST, cio->client_playas); break; } break; @@ -2354,7 +2354,7 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) case WKC_CTRL | WKC_RETURN: case WKC_CTRL | 'T': // send text to all team mates if (_networking) { const NetworkClientInfo *ci = NetworkFindClientInfoFromIndex(_network_own_client_index); - ShowNetworkChatQueryWindow(DESTTYPE_PLAYER, ci->client_playas); + ShowNetworkChatQueryWindow(DESTTYPE_TEAM, ci->client_playas); } break; #endif -- cgit v1.2.3-70-g09d2