| 1183 | }; |
| 1184 | |
| 1185 | static void UpdateIndustryProduction(Industry *i) |
| 1186 | { |
| 1187 | const IndustrySpec *indspec = GetIndustrySpec(i->type); |
| 1188 | if (indspec->UsesOriginalEconomy()) i->RecomputeProductionMultipliers(); |
| 1189 | |
| 1190 | for (auto &p : i->produced) { |
| 1191 | if (IsValidCargoType(p.cargo)) { |
| 1192 | p.history[LAST_MONTH].production = ScaleByCargoScale(8 * p.rate, false); |
| 1193 | } |
| 1194 | } |
| 1195 | } |
| 1196 | |
| 1197 | /** Widget definition of the view industry gui */ |
| 1198 | static constexpr std::initializer_list<NWidgetPart> _nested_industry_view_widgets = { |
no test coverage detected