mirror of https://github.com/OpenTTD/OpenTTD
(svn r13137) -Fix: do not send rcon commands of the server to the first client but do directly execute those on the server.
parent
9f41e0cf18
commit
976f86e7a7
|
@ -536,7 +536,11 @@ DEF_CONSOLE_CMD(ConRcon)
|
||||||
|
|
||||||
if (argc < 3) return false;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue