summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2020-12-22 14:21:31 +0100
committerGitHub <noreply@github.com>2020-12-22 14:21:31 +0100
commitb7751c483e5545aa683baf0b9f09a0add34cfefd (patch)
treea77c33c650821f0c7fe2ed6d369cb3518b7e3420 /src/newgrf_industries.cpp
parent547e5fdb65ae1c7909ef602a58085e5146782b42 (diff)
downloadopenttd-b7751c483e5545aa683baf0b9f09a0add34cfefd.tar.xz
Feature: Influence industry production changes from GS (#7912)
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index a8748a495..2dbe907de 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -248,6 +248,9 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout
case 0x46: return this->industry->construction_date; // Date when built - long format - (in days)
+ /* Override flags from GS */
+ case 0x47: return this->industry->ctlflags;
+
/* Get industry ID at offset param */
case 0x60: return GetIndustryIDAtOffset(GetNearbyTile(parameter, this->industry->location.tile, false), this->industry, this->ro.grffile->grfid);