changeset 8415:cc8545835cdc draft

(svn r11985) -Feature[FS#1697, newGRF]: Implement var 8F(random bits) during callback 28 (Industry location permissibility)
author belugas <belugas@openttd.org>
date Fri, 25 Jan 2008 18:13:04 +0000
parents 124ea89a5409
children db5c7315c961
files src/newgrf_industries.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -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 */