Changeset - r2608:962f4c747f96
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2005-11-06 10:17:20
peter1138@openttd.org
(svn r3145) Fix two off-by-one errors in building articulated rail vehicles.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -439,7 +439,7 @@ static uint CountArticulatedParts(const 
 
			break;
 
	}
 

	
 
	return i;
 
	return i - 1;
 
}
 

	
 
static void AddArticulatedParts(const RailVehicleInfo *rvi, Vehicle **vl)
 
@@ -463,7 +463,7 @@ static void AddArticulatedParts(const Ra
 
		u->next = vl[i];
 
		u = u->next;
 

	
 
		engine_type = GB(callback, 0, 6);
 
		engine_type = GB(callback, 0, 7);
 
		flip_image = HASBIT(callback, 7);
 
		rvi_artic = RailVehInfo(engine_type);
 

	
0 comments (0 inline, 0 general)