(svn r10147) -Fix: the oldloader did clear some bits for road vehicles that shouldn't be cleared in some cases.
authorrubidium
Wed, 13 Jun 2007 18:36:04 +0000
changeset 6900 ee9fd6a32e77
parent 6899 7edc4e4b1fd8
child 6901 ad8e8b93060d
(svn r10147) -Fix: the oldloader did clear some bits for road vehicles that shouldn't be cleared in some cases.
src/oldloader.cpp
--- a/src/oldloader.cpp	Wed Jun 13 18:35:06 2007 +0000
+++ b/src/oldloader.cpp	Wed Jun 13 18:36:04 2007 +0000
@@ -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