changeset 2051 | 44b6b091beb3 |
parent 1977 | 4392ae3d8e31 |
child 2073 | 899419c9b997 |
--- 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);