Mercurial > hg > openttd
changeset 6900:c850806cbcc3 draft
(svn r10147) -Fix: the oldloader did clear some bits for road vehicles that shouldn't be cleared in some cases.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 13 Jun 2007 18:36:04 +0000 |
parents | c3a0a7f5e7d7 |
children | a4380019a3db |
files | src/oldloader.cpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -330,7 +330,11 @@ 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