summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
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)) {