summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-11 00:30:32 +0000
committerrubidium <rubidium@openttd.org>2008-01-11 00:30:32 +0000
commit97d6e0e6c0bdada386ac68ffb95719721f1c54ce (patch)
tree05e3aa4702dd2e570adeaebdf8acd63559e5165f /src/command.cpp
parent2ba5bf8947f8c879ed1f41cdd218c6271f626151 (diff)
downloadopenttd-97d6e0e6c0bdada386ac68ffb95719721f1c54ce.tar.xz
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/command.cpp b/src/command.cpp
index 38193d41c..95dde1d7f 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -18,6 +18,8 @@
#include "gfx_func.h"
#include "functions.h"
#include "town.h"
+#include "date_func.h"
+#include "debug.h"
const char *_cmd_text = NULL;
@@ -613,11 +615,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback,
return true;
}
#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 */
+ DebugDumpCommands("ddc:cmd:%d;%d;%d;%d;%d;%d;%d;%s\n", _date, _date_fract, (int)_current_player, tile, p1, p2, cmd, _cmd_text);
/* update last build coordinate of player. */
if (tile != 0 && IsValidPlayer(_current_player)) {