summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-29 10:37:53 +0000
committerrubidium <rubidium@openttd.org>2008-12-29 10:37:53 +0000
commita25e3f8d701f89c15f3504ae0c7aa956c5810290 (patch)
treec9d555fd0bc0e6ec5fc8610f3881c20350063b00 /src/main_gui.cpp
parent703831ec6dc93f96b2ac21ed6187b53c92e64919 (diff)
downloadopenttd-a25e3f8d701f89c15f3504ae0c7aa956c5810290.tar.xz
(svn r14764) -Codechange: make the '***' chat messages like "Game paused (not enough players)" fully translateable.
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 905aa8458..8fc7a4ea0 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -49,14 +49,15 @@ void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2)
#ifdef ENABLE_NETWORK
if (!success || !_settings_game.economy.give_money) return;
- char msg[20];
/* Inform the company of the action of one of it's clients (controllers). */
- snprintf(msg, sizeof(msg), "%d", p1);
+ char msg[64];
+ SetDParam(0, p2);
+ GetString(msg, STR_COMPANY_NAME, lastof(msg));
if (!_network_server) {
- NetworkClientSendChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg);
+ NetworkClientSendChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg, p1);
} else {
- NetworkServerSendChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg, CLIENT_ID_SERVER);
+ NetworkServerSendChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, p2, msg, CLIENT_ID_SERVER, p1);
}
#endif /* ENABLE_NETWORK */
}