summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-08 01:36:40 +0000
committerglx <glx@openttd.org>2007-12-08 01:36:40 +0000
commite3f4d0e72a39ca20f450486e2ae0a1cfaa1aa959 (patch)
tree34c39737d14b4e450e6e80bc70407065a994ffd6 /src
parent42d6f195cfff704343f2aad453d8a9241e330f4b (diff)
downloadopenttd-e3f4d0e72a39ca20f450486e2ae0a1cfaa1aa959.tar.xz
(svn r11594) -Fix: don't allow changing network only patches settings from console when not in network game
Diffstat (limited to 'src')
-rw-r--r--src/settings.cpp1
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) {