(svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker)
This commit is contained in:
@@ -85,7 +85,11 @@ static inline void RestoreRandomSeeds(const SavedRandomSeeds &storage)
|
|||||||
|
|
||||||
void SetRandomSeed(uint32 seed);
|
void SetRandomSeed(uint32 seed);
|
||||||
#ifdef RANDOM_DEBUG
|
#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);
|
uint32 DoRandom(int line, const char *file);
|
||||||
#define RandomRange(max) DoRandomRange(max, __LINE__, __FILE__)
|
#define RandomRange(max) DoRandomRange(max, __LINE__, __FILE__)
|
||||||
uint DoRandomRange(uint max, int line, const char *file);
|
uint DoRandomRange(uint max, int line, const char *file);
|
||||||
|
Reference in New Issue
Block a user