File diff r1537:060bed3865f5 → r1538:9b83bdd8ee42
functions.h
Show inline comments
 
@@ -83,25 +83,25 @@ void NORETURN CDECL error(const char *st
 
/* ttd.c */
 

	
 
// **************
 
// * Warning: DO NOT enable this unless you understand what it does
 
// *
 
// * If enabled, in a network game all randoms will be dumped to the
 
// *  stdout if the first client joins (or if you are a client). This
 
// *  is to help finding desync problems.
 
// *
 
// * Warning: DO NOT enable this unless you understand what it does
 
// **************
 

	
 
//#define RANDOM_DEBUG
 
#define RANDOM_DEBUG
 

	
 
#ifdef RANDOM_DEBUG
 
	#define Random() DoRandom(__LINE__, __FILE__)
 
	uint32 DoRandom(int line, const char *file);
 
	#define RandomRange(max) DoRandomRange(max, __LINE__, __FILE__)
 
	uint DoRandomRange(uint max, int line, const char *file);
 
#else
 
	uint32 Random(void);
 
	uint RandomRange(uint max);
 
#endif
 

	
 
void InitPlayerRandoms(void);