summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-12-06 02:03:55 +0000
committerglx <glx@openttd.org>2006-12-06 02:03:55 +0000
commit234311c6377410b6d4e5c994911423e4b1384db6 (patch)
tree52ed2d3c7993bfbbfea7b5882a9d408883279ab0
parenteaa5af4f5cc57eb8189f38f11ed09ce7bf17fd74 (diff)
downloadopenttd-234311c6377410b6d4e5c994911423e4b1384db6.tar.xz
(svn r7391) -Fix r6814: when sending money in multiplayer, the corresponding chat message was for the wrong player (off by one)
-rw-r--r--main_gui.c4
1 files 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;
}