summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-01-30 22:04:14 +0000
committercelestar <celestar@openttd.org>2005-01-30 22:04:14 +0000
commitb312055c805286641ce1fb57fb7efdc63daed870 (patch)
tree1b4965bbdd1fe6252f37dc3900abe5b0c5313de7 /roadveh_cmd.c
parent1c109afdaafe6d2ce6fe8fd34678d7f9a50d5fcd (diff)
downloadopenttd-b312055c805286641ce1fb57fb7efdc63daed870.tar.xz
(svn r1743) -Fix: Multistop: Added some debug output and made sure that orphaned slots are cleared.
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 21b28c41a..d69894530 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -1470,8 +1470,8 @@ again:
//we have arrived at the wrong station
//XXX The question is .. what to do? Actually we shouldn't be here
//but I guess we need to clear the slot
- DEBUG(misc, 2) ("Multistop: Wrong station, force a slot clearing");
- ClearSlot(v, rs);
+ DEBUG(misc, 1) ("Multistop: Wrong station, force a slot clearing. Vehicle %d at 0x%x, should go to 0x%x of station %d (%x), destination 0x%x", v->unitnumber, v->tile, v->u.road.slot->xy, st->index, st->xy, v->dest_tile);
+ ClearSlot(v, v->u.road.slot);
}
StartRoadVehSound(v);