(svn r11452) -Change: do not allow configuration changes, that NewGRFs can directly use to change their behaviour, during network games as this can cause desyncs.

This commit is contained in:
rubidium
2007-11-17 22:25:16 +00:00
parent 2e8d37dcdf
commit 7305a1f1fe
4 changed files with 25 additions and 15 deletions

View File

@@ -1423,7 +1423,11 @@ DEF_CONSOLE_CMD(ConPatch)
if (GetArgumentInteger(&val, argv[2])) {
if (!IConsoleSetPatchSetting(argv[1], val)) {
IConsoleError("This command/variable is only available to a network server.");
if (_network_server) {
IConsoleError("This command/variable is not available during network games.");
} else {
IConsoleError("This command/variable is only available to a network server.");
}
}
}
}