Changeset - r7450:2161192943a2
[Not reviewed]
master
0 1 0
maedhros - 17 years ago 2007-08-16 18:01:27
maedhros@openttd.org
(svn r10924) -Fix [FS#1120]: VS_STOPPED is only set for the front part of an articulated
road vehicle, so don't check any other parts when testing if the vehicle is
stopped inside a depot.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/roadveh_cmd.cpp
Show inline comments
 
@@ -335,7 +335,8 @@ static bool CheckRoadVehInDepotStopped(c
 
{
 
	TileIndex tile = v->tile;
 

	
 
	if (!IsTileDepotType(tile, TRANSPORT_ROAD) || !(v->vehstatus & VS_STOPPED)) return false;
 
	if (!IsTileDepotType(tile, TRANSPORT_ROAD)) return false;
 
	if (IsRoadVehFront(v) && !(v->vehstatus & VS_STOPPED)) return false;
 

	
 
	for (; v != NULL; v = v->next) {
 
		if (v->u.road.state != RVSB_IN_DEPOT || v->tile != tile) return false;
0 comments (0 inline, 0 general)