summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-17 11:46:35 +0000
committerrubidium <rubidium@openttd.org>2008-05-17 11:46:35 +0000
commit976f86e7a755d953e232257fcb017781f26e5265 (patch)
treeceb2bbac64f0a27cc5cc61d6fd03ca03fb8d5a10
parent9f41e0cf18d9195a1b7c2fb4209dd31928b9ceb5 (diff)
downloadopenttd-976f86e7a755d953e232257fcb017781f26e5265.tar.xz
(svn r13137) -Fix: do not send rcon commands of the server to the first client but do directly execute those on the server.
-rw-r--r--src/console_cmds.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 8c0b89b72..49e003427 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -536,7 +536,11 @@ DEF_CONSOLE_CMD(ConRcon)
if (argc < 3) return false;
- SEND_COMMAND(PACKET_CLIENT_RCON)(argv[1], argv[2]);
+ if (_network_server) {
+ IConsoleCmdExec(argv[2]);
+ } else {
+ SEND_COMMAND(PACKET_CLIENT_RCON)(argv[1], argv[2]);
+ }
return true;
}