mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility)
This commit is contained in:
parent
9d63fd232e
commit
ad3c4a39f6
@ -465,6 +465,9 @@ uint32 IndustryLocationGetVariable(const ResolverObject *object, byte variable,
|
|||||||
|
|
||||||
/* Square of Euclidian distance from town */
|
/* Square of Euclidian distance from town */
|
||||||
case 0x8D: return min(DistanceSquare(industry->town->xy, tile), 65535);
|
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 */
|
/* None of the special ones, so try the general ones */
|
||||||
|
Loading…
Reference in New Issue
Block a user