summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-21 22:33:45 +0000
committerDarkvater <darkvater@openttd.org>2006-10-21 22:33:45 +0000
commitb3df5e5477de9510382646057f7848e0d1dadef3 (patch)
treebab4597deb56e9f044d839081190f61aa970a614
parent91b9b3ab18400ab3f01fb33c3a684a242a04d142 (diff)
downloadopenttd-b3df5e5477de9510382646057f7848e0d1dadef3.tar.xz
(svn r6877) -Fix r6876 +add main_gui.c
-rw-r--r--main_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main_gui.c b/main_gui.c
index 91e0e1ff8..1a5cacbac 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -83,9 +83,9 @@ void HandleOnEditText(WindowEvent *e)
snprintf(msg, sizeof(msg), "%d", money);
if (!_network_server) {
- SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_PLAYER, id + 1, msg);
+ SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, id + 1, msg);
} else {
- NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_PLAYER, id + 1, msg, NETWORK_SERVER_INDEX);
+ NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_TEAM, id + 1, msg, NETWORK_SERVER_INDEX);
}
break;
}
@@ -2342,7 +2342,7 @@ static void MainWindowWndProc(Window *w, WindowEvent *e)
}
}
- ShowNetworkChatQueryWindow(has_team ? DESTTYPE_PLAYER : DESTTYPE_BROADCAST, cio->client_playas);
+ ShowNetworkChatQueryWindow(has_team ? DESTTYPE_TEAM : DESTTYPE_BROADCAST, cio->client_playas);
break;
}
break;
@@ -2354,7 +2354,7 @@ static void MainWindowWndProc(Window *w, WindowEvent *e)
case WKC_CTRL | WKC_RETURN: case WKC_CTRL | 'T': // send text to all team mates
if (_networking) {
const NetworkClientInfo *ci = NetworkFindClientInfoFromIndex(_network_own_client_index);
- ShowNetworkChatQueryWindow(DESTTYPE_PLAYER, ci->client_playas);
+ ShowNetworkChatQueryWindow(DESTTYPE_TEAM, ci->client_playas);
}
break;
#endif