forked from mirror/OpenTTD
(svn r1250) -Fix: a dedicated server could not kick user number 1
This commit is contained in:
@@ -190,7 +190,7 @@ DEF_CONSOLE_CMD(ConKick)
|
|||||||
|
|
||||||
if (argc == 2) {
|
if (argc == 2) {
|
||||||
uint32 index = atoi(argv[1]);
|
uint32 index = atoi(argv[1]);
|
||||||
if (index == NETWORK_SERVER_INDEX) {
|
if (index == NETWORK_SERVER_INDEX && !_network_dedicated) {
|
||||||
IConsolePrint(_iconsole_color_default, "Silly boy, you can not kick yourself!");
|
IConsolePrint(_iconsole_color_default, "Silly boy, you can not kick yourself!");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user