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 | e214e03c280c77d5c84de615abe43d3a184ab2a1 (patch) | |
tree | 137509ab31e23b40260b925e3d16e4e4235fd0a9 /src | |
parent | b329781ab284fb3eb19b60697e54e2bc56bd5d58 (diff) | |
download | openttd-e214e03c280c77d5c84de615abe43d3a184ab2a1.tar.xz |
(svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility)
Diffstat (limited to 'src')
-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 */ |