summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-05 15:07:09 +0000
committersmatz <smatz@openttd.org>2008-05-05 15:07:09 +0000
commitf0064d5165d8498f8dc313024f7ade319c183ba3 (patch)
tree83af23842bb8482439fecf23360f38715169016f /src
parent78c0929b18e508f3f18728dc55e760470308d796 (diff)
downloadopenttd-f0064d5165d8498f8dc313024f7ade319c183ba3.tar.xz
(svn r12955) -Fix (r12858): compilation with desync debug was broken
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 73ebf1900..2511c2880 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -994,7 +994,7 @@ void StateGameLoop()
case VEH_ROAD: {
extern byte GetRoadVehLength(const Vehicle *v);
if (GetRoadVehLength(v) != v->u.road.cached_veh_length) {
- printf("cache mismatch: vehicle %i, player %i, unit number %i wagon %i\n", v->index, (int)v->owner, v->unitnumberlength);
+ printf("cache mismatch: vehicle %i, player %i, unit number %i\n", v->index, (int)v->owner, v->unitnumber);
}
} break;
@@ -1011,7 +1011,7 @@ void StateGameLoop()
length = 0;
for (Vehicle *u = v; u != NULL; u = u->Next()) {
if (memcmp(&wagons[length], &u->u.rail, sizeof(VehicleRail)) != 0) {
- printf("cache mismatch: vehicle %i, player %i, unit number %i wagon %i\n", v->index, (int)v->owner, v->unitnumberlength);
+ printf("cache mismatch: vehicle %i, player %i, unit number %i, wagon %i\n", v->index, (int)v->owner, v->unitnumber, length);
}
length++;
}
@@ -1023,7 +1023,7 @@ void StateGameLoop()
uint speed = v->u.air.cached_max_speed;
UpdateAircraftCache(v);
if (speed != v->u.air.cached_max_speed) {
- printf("cache mismatch: vehicle %i, player %i, unit number %i wagon %i\n", v->index, (int)v->owner, v->unitnumberlength);
+ printf("cache mismatch: vehicle %i, player %i, unit number %i\n", v->index, (int)v->owner, v->unitnumber);
}
} break;