| 772 | static void UpdateIndustryProduction(Industry *i); |
| 773 | |
| 774 | static inline bool IsProductionAlterable(const Industry *i) |
| 775 | { |
| 776 | const IndustrySpec *is = GetIndustrySpec(i->type); |
| 777 | bool has_prod = std::any_of(std::begin(is->production_rate), std::end(is->production_rate), [](auto rate) { return rate != 0; }); |
| 778 | return ((_game_mode == GM_EDITOR || _cheats.setup_prod.value) && |
| 779 | (has_prod || is->IsRawIndustry()) && |
| 780 | !_networking); |
| 781 | } |
| 782 | |
| 783 | class IndustryViewWindow : public Window |
| 784 | { |
no test coverage detected