(svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility)
authorbelugas
Fri, 25 Jan 2008 18:13:04 +0000
changeset 8911 06c7912f14b9
parent 8910 b261b6cb9b21
child 8912 15ba768c2c22
(svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility)
src/newgrf_industries.cpp
--- a/src/newgrf_industries.cpp	Fri Jan 25 16:51:35 2008 +0000
+++ b/src/newgrf_industries.cpp	Fri Jan 25 18:13:04 2008 +0000
@@ -465,6 +465,9 @@
 
 		/* 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 */