summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-01-05 21:42:34 +0000
committerglx <glx@openttd.org>2008-01-05 21:42:34 +0000
commit7a890182c033b8d1981e6a6b40131e5d5c9b9cfa (patch)
tree298ebb64a0b8316beb7403b010a9795559818e99 /src
parent0c4e3b83e40c334201d1f1873af79f132852fd0a (diff)
downloadopenttd-7a890182c033b8d1981e6a6b40131e5d5c9b9cfa.tar.xz
(svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken
Diffstat (limited to 'src')
-rw-r--r--src/command.cpp2
-rw-r--r--src/network/network.cpp3
-rw-r--r--src/network/network_data.cpp2
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 */