summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorPavel Stupnikov <dp@dpointer.org>2020-12-15 01:35:07 +0300
committerGitHub <noreply@github.com>2020-12-14 23:35:07 +0100
commitc9fd85528a804060473364c54248149e96da0508 (patch)
tree0e37667e888e77d11ee51daa5a0c69e4d03e671e /src/industry_gui.cpp
parent68f9925cd4c8b29dbdac301e86bd9fc6f5a7fb27 (diff)
downloadopenttd-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.cpp4
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) {