Changeset - r10506:87cc1a24853c
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-12-28 22:23:43
rubidium@openttd.org
(svn r14761) -Fix (r14730): missed the one DEREF_CLIENT in the random debug code :(
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/core/random_func.cpp
Show inline comments
 
@@ -38,14 +38,14 @@ void SetRandomSeed(uint32 seed)
 
#include "../network/network_internal.h"
 
#include "../variables.h" /* _frame_counter */
 
#include "../company_func.h"
 

	
 
uint32 DoRandom(int line, const char *file)
 
{
 
	if (_networking && (DEREF_CLIENT(0)->status != STATUS_INACTIVE || !_network_server)) {
 
		printf("Random [%d/%d] %s:%d\n",_frame_counter, (byte)_current_company, file, line);
 
	if (_networking && (GetNetworkClientSocket(0)->status != STATUS_INACTIVE || !_network_server)) {
 
		printf("Random [%d/%d] %s:%d\n", _frame_counter, (byte)_current_company, file, line);
 
	}
 

	
 
	return _random.Next();
 
}
 

	
 
uint DoRandomRange(uint max, int line, const char *file)
0 comments (0 inline, 0 general)