diff options
author | rubidium <rubidium@openttd.org> | 2008-01-11 00:30:32 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-01-11 00:30:32 +0000 |
commit | 04f936c2c67a58f09bb307f9b021ab7a11b885da (patch) | |
tree | 05e3aa4702dd2e570adeaebdf8acd63559e5165f /src/network/network_data.cpp | |
parent | e5d33482b49afdfa91fb0e61b210479346e47484 (diff) | |
download | openttd-04f936c2c67a58f09bb307f9b021ab7a11b885da.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/network/network_data.cpp')
-rw-r--r-- | src/network/network_data.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/network/network_data.cpp b/src/network/network_data.cpp index 28d6c0984..33e594256 100644 --- a/src/network/network_data.cpp +++ b/src/network/network_data.cpp @@ -10,6 +10,7 @@ #include "../callback_table.h" #include "../core/alloc_func.hpp" #include "../string_func.h" +#include "../date_func.h" // Add a command to the local command queue void NetworkAddCommandQueue(NetworkTCPSocketHandler *cs, CommandPacket *cp) @@ -99,11 +100,7 @@ void NetworkExecuteCommand(CommandPacket *cp) cp->callback = 0; } -#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 */ + DebugDumpCommands("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); DoCommandP(cp->tile, cp->p1, cp->p2, _callback_table[cp->callback], cp->cmd | CMD_NETWORK_COMMAND, cp->my_cmd); } |