industry_cmd.c
changeset 1586 d2d8ceccd935
parent 1373 f4d40df8c145
child 1603 e67485272abc
equal deleted inserted replaced
1585:3dc279e97623 1586:d2d8ceccd935
  1177 	return true;
  1177 	return true;
  1178 }
  1178 }
  1179 
  1179 
  1180 extern bool _ignore_restrictions;
  1180 extern bool _ignore_restrictions;
  1181 
  1181 
  1182 static bool CheckNewIndustry_Oilwell(uint tile, int type)
  1182 /* Oil Rig and Oil Refinery */
       
  1183 static bool CheckNewIndustry_Oil(uint tile, int type)
  1183 {
  1184 {
  1184 	if(_ignore_restrictions && _game_mode == GM_EDITOR)
  1185 	if(_ignore_restrictions && _game_mode == GM_EDITOR)
  1185 		return true;
  1186 		return true;
  1186 
  1187 
  1187 	if (type != IT_OIL_RIG && _game_mode == GM_EDITOR)
  1188 	if (type != IT_OIL_RIG && _game_mode == GM_EDITOR)
  1244 
  1245 
  1245 typedef bool CheckNewIndustryProc(uint tile, int type);
  1246 typedef bool CheckNewIndustryProc(uint tile, int type);
  1246 static CheckNewIndustryProc * const _check_new_industry_procs[] = {
  1247 static CheckNewIndustryProc * const _check_new_industry_procs[] = {
  1247 	CheckNewIndustry_NULL,
  1248 	CheckNewIndustry_NULL,
  1248 	CheckNewIndustry_Forest,
  1249 	CheckNewIndustry_Forest,
  1249 	CheckNewIndustry_Oilwell,
  1250 	CheckNewIndustry_Oil,
  1250 	CheckNewIndustry_Farm,
  1251 	CheckNewIndustry_Farm,
  1251 	CheckNewIndustry_Plantation,
  1252 	CheckNewIndustry_Plantation,
  1252 	CheckNewIndustry_Water,
  1253 	CheckNewIndustry_Water,
  1253 	CheckNewIndustry_Lumbermill,
  1254 	CheckNewIndustry_Lumbermill,
  1254 	CheckNewIndustry_BubbleGen,
  1255 	CheckNewIndustry_BubbleGen,