summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-04-10 21:51:11 +0000
committerDarkvater <Darkvater@openttd.org>2005-04-10 21:51:11 +0000
commit11920607e4e7c9de5dccf87298a19db74c1a3f67 (patch)
tree4248a9c63d215b5c034264059f3332f62d41c055
parent8b1d33492773b0c5fc035d83d84ec8c39b3fa71f (diff)
downloadopenttd-11920607e4e7c9de5dccf87298a19db74c1a3f67.tar.xz
(svn r2177) - Fix: Fix a slot desync with setting the invalid slot to the correct value
-rw-r--r--order_cmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/order_cmd.c b/order_cmd.c
index d28f3a6ff..5f2086257 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -362,9 +362,11 @@ int32 CmdSkipOrder(int x, int y, uint32 flags, uint32 vehicle_id, uint32 not_use
v->u.rail.days_since_order_progr = 0;
if (v->type == VEH_Road && v->u.road.slot != NULL) {
- //Clear the slot
- v->u.road.slot->slot[v->u.road.slotindex] = 0;
+ //Clear the slot ClearSlot() of roadveh_cmd.c
+ DEBUG(ms, 3) ("Multistop: Clearing slot %d at 0x%x", v->u.road.slotindex, v->dest_tile);
v->u.road.slot = NULL;
+ v->u.road.slot_age = 0;
+ v->u.road.slot->slot[v->u.road.slotindex] = INVALID_SLOT;
}
}