summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-11 10:11:26 +0000
committerrubidium <rubidium@openttd.org>2010-04-11 10:11:26 +0000
commit5c7aaf11badc8be299ca4fe3c1b988d49a237d74 (patch)
tree442b69a296e821329b355828840a087c1f49422c /src/network
parent9b7d71699d2ae0016e721d425b12ad516bd88101 (diff)
downloadopenttd-5c7aaf11badc8be299ca4fe3c1b988d49a237d74.tar.xz
(svn r19602) -Codechange: add the name of the command to the desync logs
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 0367d6633..e52530a24 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -1095,7 +1095,7 @@ void NetworkGameLoop()
if (cp != NULL && _date == next_date && _date_fract == next_date_fract) {
_current_company = cp->company;
bool ret = DoCommandP(cp->tile, cp->p1, cp->p2, cp->cmd, NULL, cp->text);
- DEBUG(net, 0, "injecting: %08x; %02x; %02x; %06x; %08x; %08x; %08x; \"%s\" -> %i", _date, _date_fract, (int)_current_company, cp->tile, cp->p1, cp->p2, cp->cmd, cp->text, (int)ret);
+ DEBUG(net, 0, "injecting: %08x; %02x; %02x; %06x; %08x; %08x; %08x; \"%s\" (%s) -> %i", _date, _date_fract, (int)_current_company, cp->tile, cp->p1, cp->p2, cp->cmd, cp->text, GetCommandName(cp->cmd), (int)ret);
assert(ret);
free(cp);
cp = NULL;