summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-27 12:55:43 +0000
committerrubidium <rubidium@openttd.org>2010-11-27 12:55:43 +0000
commitff015ac62ca74defe338b2f8427358ae56de4902 (patch)
tree984e78d4ffef8c27a36608f175267df4bc08435a
parent529da62f15641f75da0afb86a9bdb110e7fa1bd5 (diff)
downloadopenttd-ff015ac62ca74defe338b2f8427358ae56de4902.tar.xz
(svn r21336) -Fix (r21030) [FS#4274]: compile failure when desync debugging is enabled (fonsinchen)
-rw-r--r--src/core/random_func.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/random_func.cpp b/src/core/random_func.cpp
index 1c53d99c7..1c5b0fae2 100644
--- a/src/core/random_func.cpp
+++ b/src/core/random_func.cpp
@@ -43,12 +43,13 @@ void SetRandomSeed(uint32 seed)
#ifdef RANDOM_DEBUG
#include "../network/network.h"
+#include "../network/network_server.h"
#include "../network/network_internal.h"
#include "../company_func.h"
uint32 DoRandom(int line, const char *file)
{
- if (_networking && (!_network_server || (NetworkClientSocket::IsValidID(0) && NetworkClientSocket::Get(0)->status != STATUS_INACTIVE))) {
+ if (_networking && (!_network_server || (NetworkClientSocket::IsValidID(0) && NetworkClientSocket::Get(0)->status != NetworkClientSocket::STATUS_INACTIVE))) {
printf("Random [%d/%d] %s:%d\n", _frame_counter, (byte)_current_company, file, line);
}