mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r2096) -Codechange: [Multistop] Modfied some debug stuff
This commit is contained in:
parent
bba102e624
commit
f42d17c6b3
@ -2439,7 +2439,12 @@ static void StationHandleBigTick(Station *st)
|
|||||||
Vehicle *v = GetVehicle(rs->slot[k]);
|
Vehicle *v = GetVehicle(rs->slot[k]);
|
||||||
|
|
||||||
if (v->u.road.slot != rs) {
|
if (v->u.road.slot != rs) {
|
||||||
DEBUG(ms, 0) ("Multistop: Bus Slot Desync! cleaning up (Don't panic)");
|
DEBUG(ms, 1) ("Multistop: Truck Slot Desync between stop at "\
|
||||||
|
"0x%x of station %d (at 0x%x) and Vehicle %d at 0x%x, "\
|
||||||
|
"going to 0x%x! "\
|
||||||
|
"cleaning up (Don't panic)", \
|
||||||
|
rs->xy, st->index, st->xy, v->unitnumber, v->tile, \
|
||||||
|
v->dest_tile);
|
||||||
v->u.road.slot = NULL;
|
v->u.road.slot = NULL;
|
||||||
v->u.road.slot_age = 0;
|
v->u.road.slot_age = 0;
|
||||||
rs->slot[k] = INVALID_SLOT;
|
rs->slot[k] = INVALID_SLOT;
|
||||||
@ -2455,7 +2460,12 @@ static void StationHandleBigTick(Station *st)
|
|||||||
Vehicle *v = GetVehicle(rs->slot[k]);
|
Vehicle *v = GetVehicle(rs->slot[k]);
|
||||||
|
|
||||||
if (v->u.road.slot != rs) {
|
if (v->u.road.slot != rs) {
|
||||||
DEBUG(ms, 0) ("Multistop: Truck Slot Desync! cleaning up (Don't panic)");
|
DEBUG(ms, 1) ("Multistop: Truck Slot Desync between stop at "\
|
||||||
|
"0x%x of station %d (at 0x%x) and Vehicle %d at 0x%x, "\
|
||||||
|
"going to 0x%x! "\
|
||||||
|
"cleaning up (Don't panic)", \
|
||||||
|
rs->xy, st->index, st->xy, v->unitnumber, v->tile, \
|
||||||
|
v->dest_tile);
|
||||||
v->u.road.slot = NULL;
|
v->u.road.slot = NULL;
|
||||||
v->u.road.slot_age = 0;
|
v->u.road.slot_age = 0;
|
||||||
rs->slot[k] = INVALID_SLOT;
|
rs->slot[k] = INVALID_SLOT;
|
||||||
|
Loading…
Reference in New Issue
Block a user