equal
deleted
inserted
replaced
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; |