diff options
author | belugas <belugas@openttd.org> | 2007-07-24 01:26:57 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-07-24 01:26:57 +0000 |
commit | 7da7523caa0620aa7d88f2419b65bfeb189c636d (patch) | |
tree | e61dbcccfa15317c701f0b133a4b3c1bfaf286bb /src | |
parent | b0d618c66b637b0b700159ffaef700d1c6a8c9fe (diff) | |
download | openttd-7da7523caa0620aa7d88f2419b65bfeb189c636d.tar.xz |
(svn r10669) -Codechange: Removed redundant comment
-Codechange: Add placeholder for yet another industry "variable" to code
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_industries.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 11b1ad279..5900300bf 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -178,7 +178,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par } /* Distance of nearest industry of given type */ - case 0x64: return GetClosestIndustry(tile, MapNewGRFIndustryType(parameter, indspec->grf_prop.grffile->grfid), industry); // Distance of nearest industry of given type + case 0x64: return GetClosestIndustry(tile, MapNewGRFIndustryType(parameter, indspec->grf_prop.grffile->grfid), industry); /* Get town zone and Manhattan distance of closest town */ case 0x65: return GetTownRadiusGroup(industry->town, tile) << 16 | min(DistanceManhattan(tile, industry->town->xy), 0xFFFF); /* Get square of Euclidian distance of closes town */ @@ -189,6 +189,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par * A lot more should be done, since it has to check for local id, grf id etc... * let's just say it is a beginning ;) */ case 0x67: return GetIndustryTypeCount(industry->type) << 16 | 0; + case 0x68: break; /* Industry structure access*/ case 0x80: return industry->xy; |