mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker)
This commit is contained in:
parent
33a96b5ef3
commit
d0122644af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user