From e214e03c280c77d5c84de615abe43d3a184ab2a1 Mon Sep 17 00:00:00 2001 From: belugas Date: Fri, 25 Jan 2008 18:13:04 +0000 Subject: (svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility) --- src/newgrf_industries.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit v1.2.3-70-g09d2