diff options
author | dominik <dominik@openttd.org> | 2004-08-10 16:12:40 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-08-10 16:12:40 +0000 |
commit | 4d148bf0fa63fb36f253bdaf57e52280881945cb (patch) | |
tree | fa27cca8d14efc09f612933ecb0c3537f12cd34a /industry_cmd.c | |
parent | 935be05e8ff0ba2e0c6d436d6e254f2fede73899 (diff) | |
download | openttd-4d148bf0fa63fb36f253bdaf57e52280881945cb.tar.xz |
(svn r8) Fix: Automatic oil refinery generation in editor
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 6 |
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; |