mirror of https://github.com/OpenTTD/OpenTTD
(svn r10147) -Fix: the oldloader did clear some bits for road vehicles that shouldn't be cleared in some cases.
parent
0b65070b36
commit
2c6bf89e02
|
@ -330,7 +330,11 @@ static void FixOldVehicles()
|
||||||
Vehicle *u;
|
Vehicle *u;
|
||||||
|
|
||||||
/* We haven't used this bit for stations for ages */
|
/* 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) {
|
FOR_ALL_VEHICLES_FROM(u, v->index + 1) {
|
||||||
/* If a vehicle has the same orders, add the link to eachother
|
/* If a vehicle has the same orders, add the link to eachother
|
||||||
|
|
Loading…
Reference in New Issue