summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2014-06-20 20:04:10 +0000
committerplanetmaker <planetmaker@openttd.org>2014-06-20 20:04:10 +0000
commit73bfec0fc8930ca47e8f5c7ff524312681fa0736 (patch)
treec0ef2372790eedac9f940cd4e8e849034caaaa99
parenta1e2372da90bbb579c81177159231ff8a845ab6b (diff)
downloadopenttd-73bfec0fc8930ca47e8f5c7ff524312681fa0736.tar.xz
(svn r26656) -Fix [FS#6044]: Production cheat cannot not be allowed to be active in multiplayer for desync reasons, even when activated in singleplayer previously
-rw-r--r--src/industry_gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 88cb29c74..6f944b187 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -24,6 +24,7 @@
#include "newgrf_industries.h"
#include "newgrf_text.h"
#include "newgrf_debug.h"
+#include "network/network.h"
#include "strings_func.h"
#include "company_func.h"
#include "tilehighlight_func.h"
@@ -639,7 +640,8 @@ static inline bool IsProductionAlterable(const Industry *i)
{
const IndustrySpec *is = GetIndustrySpec(i->type);
return ((_game_mode == GM_EDITOR || _cheats.setup_prod.value) &&
- (is->production_rate[0] != 0 || is->production_rate[1] != 0 || is->IsRawIndustry()));
+ (is->production_rate[0] != 0 || is->production_rate[1] != 0 || is->IsRawIndustry()) &&
+ !_networking);
}
class IndustryViewWindow : public Window