mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r1590) -Fix: [1107347] ban 1 crashes dedicated server. Dedicated server cannot ban itself :)
This commit is contained in:
parent
c0a0d1bb22
commit
b49547b2b5
@ -304,7 +304,7 @@ DEF_CONSOLE_CMD(ConBan)
|
||||
|
||||
if (argc == 2) {
|
||||
uint32 index = atoi(argv[1]);
|
||||
if (index == NETWORK_SERVER_INDEX && !_network_dedicated) {
|
||||
if (index == NETWORK_SERVER_INDEX) {
|
||||
IConsolePrint(_iconsole_color_default, "Silly boy, you can not ban yourself!");
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user