diff options
author | rubidium <rubidium@openttd.org> | 2008-12-28 22:23:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-28 22:23:43 +0000 |
commit | 5c8a281e00d38b024d08cc41083272ef57ac71e0 (patch) | |
tree | 97f71815400469be0cd8bb22101dc3e7806bd837 | |
parent | 3b08d2ecaab8b34e93a49aebafed9a746b391b39 (diff) | |
download | openttd-5c8a281e00d38b024d08cc41083272ef57ac71e0.tar.xz |
(svn r14761) -Fix (r14730): missed the one DEREF_CLIENT in the random debug code :(
-rw-r--r-- | src/core/random_func.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/random_func.cpp b/src/core/random_func.cpp index 5147509e6..ae3fcf95f 100644 --- a/src/core/random_func.cpp +++ b/src/core/random_func.cpp @@ -41,8 +41,8 @@ void SetRandomSeed(uint32 seed) 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(); |