summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-21 22:29:14 +0000
committerDarkvater <darkvater@openttd.org>2006-10-21 22:29:14 +0000
commit91b9b3ab18400ab3f01fb33c3a684a242a04d142 (patch)
tree1749ba1045f80bc6f9dc51f19f5c263d872aa0ae /console_cmds.c
parentbaf451b216e2f7c741d727458f4b750b983585ed (diff)
downloadopenttd-91b9b3ab18400ab3f01fb33c3a684a242a04d142.tar.xz
(svn r6876) -Codechange: Change the naming of _PLAYER in DESTTYPE_PLAYER/NETWORK_ACTION_CHAT_PLAYER
to _COMPANY as that is whom you are really addressing to. Also change some variable names, 'desttype' is confusing if there is also a parameter 'dest', so rename it to just type.
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 00bf220cb..aa7f44c84 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -1245,9 +1245,9 @@ DEF_CONSOLE_CMD(ConSayPlayer)
}
if (!_network_server) {
- SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_CHAT_PLAYER, DESTTYPE_PLAYER, atoi(argv[1]), argv[2]);
+ SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_CHAT_COMPANY, DESTTYPE_TEAM, atoi(argv[1]), argv[2]);
} else {
- NetworkServer_HandleChat(NETWORK_ACTION_CHAT_PLAYER, DESTTYPE_PLAYER, atoi(argv[1]), argv[2], NETWORK_SERVER_INDEX);
+ NetworkServer_HandleChat(NETWORK_ACTION_CHAT_COMPANY, DESTTYPE_TEAM, atoi(argv[1]), argv[2], NETWORK_SERVER_INDEX);
}
return true;