Changeset - r7909:bc821039da25
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-11-18 15:06:01
rubidium@openttd.org
(svn r11461) -Fix [FS#1449] (r11449): a bus turning around in a station could case an assertion error. Patch by divide.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/roadveh_cmd.cpp
Show inline comments
 
@@ -1682,8 +1682,8 @@ again:
 

	
 
		uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME;
 

	
 
		RoadBits tram = GetRoadBits(v->tile, ROADTYPE_TRAM);
 
		if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram) == 1) {
 
		RoadBits tram;
 
		if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetRoadBits(v->tile, ROADTYPE_TRAM)) == 1) {
 
			/*
 
			 * The tram is turning around with one tram 'roadbit'. This means that
 
			 * it is using the 'big' corner 'drive data'. However, to support the
0 comments (0 inline, 0 general)