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
commit73c06df571095138dd797fedc9c2c42fd9483702 (patch)
tree52ed2d3c7993bfbbfea7b5882a9d408883279ab0
parent230b6fd08e3e16f1b9f082ee0567da2f5fc2c187 (diff)
downloadopenttd-73c06df571095138dd797fedc9c2c42fd9483702.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;
}