summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'industry_cmd.c')
-rw-r--r--industry_cmd.c6
1 files changed, 6 insertions, 0 deletions
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;