src/industry_gui.cpp
changeset 11161 7d0fac8f14cd
parent 10836 a9a253c9f626
equal deleted inserted replaced
11160:4b963391b435 11161:7d0fac8f14cd
   417 	}
   417 	}
   418 };
   418 };
   419 
   419 
   420 void ShowBuildIndustryWindow()
   420 void ShowBuildIndustryWindow()
   421 {
   421 {
   422 	if (_game_mode != GM_EDITOR && !IsValidPlayer(_current_player)) return;
   422 	if (_game_mode != GM_EDITOR && !IsValidPlayerID(_current_player)) return;
   423 	if (BringWindowToFrontById(WC_BUILD_INDUSTRY, 0)) return;
   423 	if (BringWindowToFrontById(WC_BUILD_INDUSTRY, 0)) return;
   424 	new BuildIndustryWindow();
   424 	new BuildIndustryWindow();
   425 }
   425 }
   426 
   426 
   427 static void UpdateIndustryProduction(Industry *i);
   427 static void UpdateIndustryProduction(Industry *i);