summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-13 18:36:04 +0000
committerrubidium <rubidium@openttd.org>2007-06-13 18:36:04 +0000
commit2c6bf89e02e54995d035febe221ddb8b11fe4efe (patch)
treeaa8736f2bbd296010936d4e187576b5ce47a5168
parent0b65070b36760a17ea78cdc8484d6049d583db12 (diff)
downloadopenttd-2c6bf89e02e54995d035febe221ddb8b11fe4efe.tar.xz
(svn r10147) -Fix: the oldloader did clear some bits for road vehicles that shouldn't be cleared in some cases.
-rw-r--r--src/oldloader.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index fbc601bad..87e4520d5 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -330,7 +330,11 @@ static void FixOldVehicles()
Vehicle *u;
/* We haven't used this bit for stations for ages */
- if (v->type == VEH_ROAD) CLRBIT(v->u.road.state, RVS_IS_STOPPING);
+ if (v->type == VEH_ROAD &&
+ v->u.road.state != RVSB_IN_DEPOT &&
+ v->u.road.state != RVSB_WORMHOLE) {
+ CLRBIT(v->u.road.state, RVS_IS_STOPPING);
+ }
FOR_ALL_VEHICLES_FROM(u, v->index + 1) {
/* If a vehicle has the same orders, add the link to eachother