diff options
author | belugas <belugas@openttd.org> | 2008-06-10 17:47:55 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-06-10 17:47:55 +0000 |
commit | f4153bcbde9808a31812ef30fb7e612c778d0da7 (patch) | |
tree | ce37cc9d245a74444424e1406456a529bac5aa97 /src | |
parent | 8123d4de115b66fb8c0ed4b167b5e186b841c39c (diff) | |
download | openttd-f4153bcbde9808a31812ef30fb7e612c778d0da7.tar.xz |
(svn r13446) -Fix(r13443): changed the var previously introduced from 69 to 46, as no param was required (thanks frosch)
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_industries.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 49c3a0bf8..666cd0ffb 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -265,6 +265,8 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par return industry->founder | (is_ai ? 0x10000 : 0) | (colours << 24); } + case 0x46: return industry->construction_date; // Date when built - long format - (in days) + /* Get industry ID at offset param */ case 0x60: return GetIndustryIDAtOffset(GetNearbyTile(parameter, industry->xy), industry); @@ -296,8 +298,6 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par case 0x67: case 0x68: return GetCountAndDistanceOfClosestInstance(parameter, variable == 0x68 ? GB(GetRegister(0x101), 0, 8) : 0, industry); - case 0x69: return industry->construction_date; // Date when built - long format - (in days) - /* Get a variable from the persistent storage */ case 0x7C: return industry->psa.Get(parameter); |