functions.h
changeset 2051 e369160ce2f3
parent 1977 37bbebf94434
child 2073 2d63300e4a44
--- a/functions.h	Wed Jul 13 18:46:51 2005 +0000
+++ b/functions.h	Wed Jul 13 19:51:31 2005 +0000
@@ -101,6 +101,9 @@
 #else
 	uint32 Random(void);
 	uint RandomRange(uint max);
+
+	static inline TileIndex RandomTileSeed(uint32 r) { return TILE_MASK(r); }
+	static inline TileIndex RandomTile(void) { return TILE_MASK(Random()); }
 #endif
 
 void InitPlayerRandoms(void);