diff options
author | glx <glx@openttd.org> | 2007-12-08 01:36:40 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-12-08 01:36:40 +0000 |
commit | 04f070035788e704f6d9e0182afbe461f259ee4b (patch) | |
tree | 34c39737d14b4e450e6e80bc70407065a994ffd6 | |
parent | af4d07b978a54c375e3548083dbe6720f87fd68b (diff) | |
download | openttd-04f070035788e704f6d9e0182afbe461f259ee4b.tar.xz |
(svn r11594) -Fix: don't allow changing network only patches settings from console when not in network game
-rw-r--r-- | src/settings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index e43951998..68b187707 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1806,6 +1806,7 @@ CommandCost CmdChangePatchSetting(TileIndex tile, uint32 flags, uint32 p1, uint3 if (sd == NULL) return CMD_ERROR; if (!SlIsObjectCurrentlyValid(sd->save.version_from, sd->save.version_to)) return CMD_ERROR; + if ((sd->desc.flags & SGF_NETWORK_ONLY) && !_networking) return CMD_ERROR; if ((sd->desc.flags & SGF_NO_NETWORK) && _networking) return CMD_ERROR; if (flags & DC_EXEC) { |