diff options
author | glx <glx@openttd.org> | 2008-01-05 21:42:34 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-01-05 21:42:34 +0000 |
commit | 91be5d75311a4a032164d733f6ed97dc87419cca (patch) | |
tree | 298ebb64a0b8316beb7403b010a9795559818e99 | |
parent | 5d837282ee209c37ed5c5a29ff509e9283a56b42 (diff) | |
download | openttd-91be5d75311a4a032164d733f6ed97dc87419cca.tar.xz |
(svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken
-rw-r--r-- | src/command.cpp | 2 | ||||
-rw-r--r-- | src/network/network.cpp | 3 | ||||
-rw-r--r-- | src/network/network_data.cpp | 2 |
3 files changed, 7 insertions, 0 deletions
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 */ |