diff options
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functions.h b/functions.h index a34525f28..4960eb338 100644 --- a/functions.h +++ b/functions.h @@ -101,6 +101,9 @@ void NORETURN CDECL error(const char *str, ...); #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); |