diff options
author | rubidium <rubidium@openttd.org> | 2007-11-17 22:25:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-17 22:25:16 +0000 |
commit | 7305a1f1fe4099a7b34e4f19356b775d1b5628b4 (patch) | |
tree | 5a088947831b7e86a3d18c2749d6dd39296de048 /src/console_cmds.cpp | |
parent | 2e8d37dcdf08afc074cbff9b610ddf9954af088e (diff) | |
download | openttd-7305a1f1fe4099a7b34e4f19356b775d1b5628b4.tar.xz |
(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.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 6002da263..764b7d6ae 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -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."); + } } } } |