industry_gui.c
changeset 5005 21e84e53c732
parent 4995 e6152c0dc612
child 5070 0bbf5264bfb7
equal deleted inserted replaced
5004:0fdfbb61f146 5005:21e84e53c732
   266 	},
   266 	},
   267 };
   267 };
   268 
   268 
   269 void ShowBuildIndustryWindow(void)
   269 void ShowBuildIndustryWindow(void)
   270 {
   270 {
   271 	if (_current_player == PLAYER_SPECTATOR) return;
   271 	if (!IsValidPlayer(_current_player)) return;
   272 	AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt_ptr->landscape],0);
   272 	AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt_ptr->landscape],0);
   273 }
   273 }
   274 
   274 
   275 static inline bool isProductionMinimum(const Industry *i, int pt) {
   275 static inline bool isProductionMinimum(const Industry *i, int pt) {
   276 	return i->production_rate[pt] == 1;
   276 	return i->production_rate[pt] == 1;