(svn r8) Fix: Automatic oil refinery generation in editor

This commit is contained in:
dominik
2004-08-10 16:12:40 +00:00
parent 935be05e8f
commit 4d148bf0fa
2 changed files with 12 additions and 0 deletions

View File

@@ -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;