diff options
author | Pavel Stupnikov <dp@dpointer.org> | 2020-12-15 01:35:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 23:35:07 +0100 |
commit | c9fd85528a804060473364c54248149e96da0508 (patch) | |
tree | 0e37667e888e77d11ee51daa5a0c69e4d03e671e /src/industry_gui.cpp | |
parent | 68f9925cd4c8b29dbdac301e86bd9fc6f5a7fb27 (diff) | |
download | openttd-c9fd85528a804060473364c54248149e96da0508.tar.xz |
Add: new economy "frozen" that stops production changes and industry closures (#8282)
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index a795b6a0e..e54b1b2a4 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -1080,7 +1080,7 @@ public: const Industry *i = Industry::Get(this->window_number); if (IsProductionAlterable(i)) { const IndustrySpec *ind = GetIndustrySpec(i->type); - this->editable = ind->UsesSmoothEconomy() ? EA_RATE : EA_MULTIPLIER; + this->editable = ind->UsesOriginalEconomy() ? EA_MULTIPLIER : EA_RATE; } else { this->editable = EA_NONE; } @@ -1100,7 +1100,7 @@ public: static void UpdateIndustryProduction(Industry *i) { const IndustrySpec *indspec = GetIndustrySpec(i->type); - if (!indspec->UsesSmoothEconomy()) i->RecomputeProductionMultipliers(); + if (indspec->UsesOriginalEconomy()) i->RecomputeProductionMultipliers(); for (byte j = 0; j < lengthof(i->produced_cargo); j++) { if (i->produced_cargo[j] != CT_INVALID) { |