From 4d148bf0fa63fb36f253bdaf57e52280881945cb Mon Sep 17 00:00:00 2001 From: dominik Date: Tue, 10 Aug 2004 16:12:40 +0000 Subject: (svn r8) Fix: Automatic oil refinery generation in editor --- industry_cmd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'industry_cmd.c') diff --git a/industry_cmd.c b/industry_cmd.c index 693429211..895ca0442 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -1110,9 +1110,15 @@ static bool CheckNewIndustry_Forest(uint tile, int type) return true; } +extern bool _ignore_restrictions; + static bool CheckNewIndustry_Oilwell(uint tile, int type) { int x,y; + + if(_ignore_restrictions && _game_mode == GM_EDITOR) + return true; + if (type != IT_OIL_RIG && _game_mode == GM_EDITOR) return true; -- cgit v1.2.3-54-g00ecf