Changeset - r2610:4f099f207a8b
[Not reviewed]
master
0 1 0
peter1138 - 19 years ago 2005-11-06 13:29:28
peter1138@openttd.org
(svn r3147) Fix crash when building dual-head rail vehicles...
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -697,7 +697,7 @@ int32 CmdBuildRailVehicle(int x, int y, 
 
	if (rvi->flags&RVI_MULTIHEAD && HASBIT(p2,0))
 
		value /= 2;
 

	
 
	num_vehicles = (rvi->flags & RVI_MULTIHEAD && HASBIT(p2, 0)) ? 2 : 1;
 
	num_vehicles = (rvi->flags & RVI_MULTIHEAD && !HASBIT(p2, 0)) ? 2 : 1;
 
	num_vehicles += CountArticulatedParts(rvi, p1);
 

	
 
	if (!(flags & DC_QUERY_COST)) {
0 comments (0 inline, 0 general)