summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes E. Krause <j.k@eclipso.de>2019-03-24 18:32:39 +0100
committerPeterN <peter@fuzzle.org>2019-03-27 10:44:21 +0000
commitfdaf67d9246342f55a40d3d4ce8740e3dc53e265 (patch)
tree39eea1f5f220dcdb78c5da1b1667bb22b1f82be2 /src
parent1a4c7a4e545e275a60be1617e55d7ea4f65264f9 (diff)
downloadopenttd-fdaf67d9246342f55a40d3d4ce8740e3dc53e265.tar.xz
Add: [Newgrf] Some 60+ Vars for industries that were missed in #6867
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_industries.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index 19664fa6d..457b06f67 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -308,7 +308,9 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout
case 0x6A:
case 0x6B:
case 0x6C:
- case 0x6D: {
+ case 0x6D:
+ case 0x70:
+ case 0x71: {
CargoID cargo = GetCargoTranslation(parameter, this->ro.grffile);
int index = this->industry->GetCargoProducedIndex(cargo);
if (index < 0) return 0; // invalid cargo
@@ -318,6 +320,8 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout
case 0x6B: return this->industry->this_month_transported[index];
case 0x6C: return this->industry->last_month_production[index];
case 0x6D: return this->industry->last_month_transported[index];
+ case 0x70: return this->industry->production_rate[index];
+ case 0x71: return this->industry->last_month_pct_transported[index];
default: NOT_REACHED();
}
}