summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-19 15:14:55 +0000
committertruelight <truelight@openttd.org>2004-12-19 15:14:55 +0000
commitdb16262698bcd1d092ed51a104dc4d714045d726 (patch)
tree3f0dc436ecf5e3139d2c413a434aaf56448a0d75 /main_gui.c
parent96c1e88d569145c621b1b1739e7b92ba4507bf2d (diff)
downloadopenttd-db16262698bcd1d092ed51a104dc4d714045d726.tar.xz
(svn r1174) -Fix: [Network] All strings can now be translated (no more hardcoded strings)
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main_gui.c b/main_gui.c
index 1f1b01712..6994767ed 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -91,8 +91,7 @@ void HandleOnEditText(WindowEvent *e) {
if (!DoCommandP(0, money, id, NULL, CMD_GIVE_MONEY)) break;
// Inform the player of this action
- SetDParam(0, money);
- GetString(msg, STR_NETWORK_GIVE_MONEY);
+ snprintf(msg, 100, "%d", money);
if (!_network_server)
SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_PLAYER, id + 1, msg);