diff options
author | belugas <belugas@openttd.org> | 2008-01-25 18:13:04 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-01-25 18:13:04 +0000 |
commit | ad3c4a39f61c7e206bedb9ce26e5b190d45a1090 (patch) | |
tree | 137509ab31e23b40260b925e3d16e4e4235fd0a9 | |
parent | 9d63fd232e38be342ffaf85b3c7a174e01ab6230 (diff) | |
download | openttd-ad3c4a39f61c7e206bedb9ce26e5b190d45a1090.tar.xz |
(svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility)
-rw-r--r-- | src/newgrf_industries.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index a79efad21..679ad6d81 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -465,6 +465,9 @@ uint32 IndustryLocationGetVariable(const ResolverObject *object, byte variable, /* Square of Euclidian distance from town */ case 0x8D: return min(DistanceSquare(industry->town->xy, tile), 65535); + + /* 32 random bits */ + case 0x8F: return Random(); } /* None of the special ones, so try the general ones */ |