summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/random_func.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/random_func.hpp b/src/core/random_func.hpp
index 30e5bdd17..d0e12ba92 100644
--- a/src/core/random_func.hpp
+++ b/src/core/random_func.hpp
@@ -85,7 +85,11 @@ static inline void RestoreRandomSeeds(const SavedRandomSeeds &storage)
void SetRandomSeed(uint32 seed);
#ifdef RANDOM_DEBUG
- #define Random() DoRandom(__LINE__, __FILE__)
+ #ifdef __APPLE__
+ #define OTTD_Random() DoRandom(__LINE__, __FILE__)
+ #else
+ #define Random() DoRandom(__LINE__, __FILE__)
+ #endif
uint32 DoRandom(int line, const char *file);
#define RandomRange(max) DoRandomRange(max, __LINE__, __FILE__)
uint DoRandomRange(uint max, int line, const char *file);