From 234311c6377410b6d4e5c994911423e4b1384db6 Mon Sep 17 00:00:00 2001 From: glx Date: Wed, 6 Dec 2006 02:03:55 +0000 Subject: (svn r7391) -Fix r6814: when sending money in multiplayer, the corresponding chat message was for the wrong player (off by one) --- main_gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main_gui.c b/main_gui.c index 95ae13a70..37bfb5db0 100644 --- a/main_gui.c +++ b/main_gui.c @@ -86,9 +86,9 @@ void HandleOnEditText(WindowEvent *e) snprintf(msg, sizeof(msg), "%d", money); if (!_network_server) { - SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, id + 1, msg); + SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, id, msg); } else { - NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, id + 1, msg, NETWORK_SERVER_INDEX); + NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, id, msg, NETWORK_SERVER_INDEX); } break; } -- cgit v1.2.3-70-g09d2