summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-01-25 18:13:04 +0000
committerbelugas <belugas@openttd.org>2008-01-25 18:13:04 +0000
commite214e03c280c77d5c84de615abe43d3a184ab2a1 (patch)
tree137509ab31e23b40260b925e3d16e4e4235fd0a9 /src
parentb329781ab284fb3eb19b60697e54e2bc56bd5d58 (diff)
downloadopenttd-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.cpp3
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 */