From 7a890182c033b8d1981e6a6b40131e5d5c9b9cfa Mon Sep 17 00:00:00 2001 From: glx Date: Sat, 5 Jan 2008 21:42:34 +0000 Subject: (svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken --- src/command.cpp | 2 ++ src/network/network.cpp | 3 +++ src/network/network_data.cpp | 2 ++ 3 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/command.cpp b/src/command.cpp index fcbeefa18..fdd595a28 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -610,6 +610,8 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, } #endif /* ENABLE_NETWORK */ #ifdef DEBUG_DUMP_COMMANDS + extern Date _date; + extern DateFract _date_fract; debug_dump_commands("ddc:cmd:%d;%d;%d;%d;%d;%d;%d;%s\n", _date, _date_fract, (int)_current_player, tile, p1, p2, cmd, _cmd_text); #endif /* DUMP_COMMANDS */ diff --git a/src/network/network.cpp b/src/network/network.cpp index f1c11a3ec..59f11fa39 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -32,6 +32,9 @@ extern const char _openttd_revision[]; #include "../texteff.hpp" #include "../core/random_func.hpp" #include "../window_func.h" +#ifdef DEBUG_DUMP_COMMANDS + #include "../core/alloc_func.hpp" +#endif /* Check whether NETWORK_NUM_LANDSCAPES is still in sync with NUM_LANDSCAPE */ assert_compile((int)NETWORK_NUM_LANDSCAPES == (int)NUM_LANDSCAPE); diff --git a/src/network/network_data.cpp b/src/network/network_data.cpp index 8e525cec9..6cb8e1d47 100644 --- a/src/network/network_data.cpp +++ b/src/network/network_data.cpp @@ -100,6 +100,8 @@ void NetworkExecuteCommand(CommandPacket *cp) } #ifdef DEBUG_DUMP_COMMANDS + extern Date _date; + extern DateFract _date_fract; debug_dump_commands("ddc:cmd:%d;%d;%d;%d;%d;%d;%d;%s\n", _date, _date_fract, (int)cp->player, cp->tile, cp->p1, cp->p2, cp->cmd, cp->text); #endif /* DUMP_COMMANDS */ -- cgit v1.2.3-70-g09d2