Changeset - r21623:7afcfb565430
[Not reviewed]
master
0 1 0
frosch - 10 years ago 2014-08-23 10:44:32
frosch@openttd.org
(svn r26755) -Fix (r26747) [FS#6093]: Silence MSVC warning.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -2360,7 +2360,7 @@ static void SpawnAdvancedVisualEffect(co
 
	int8 l_center = 0;
 
	if (auto_center) {
 
		/* For road vehicles: Compute offset from vehicle position to vehicle center */
 
		if (v->type == VEH_ROAD) l_center = -(VEHICLE_LENGTH - RoadVehicle::From(v)->gcache.cached_veh_length) / 2;
 
		if (v->type == VEH_ROAD) l_center = -(int)(VEHICLE_LENGTH - RoadVehicle::From(v)->gcache.cached_veh_length) / 2;
 
	} else {
 
		/* For trains: Compute offset from vehicle position to sprite position */
 
		if (v->type == VEH_TRAIN) l_center = (VEHICLE_LENGTH - Train::From(v)->gcache.cached_veh_length) / 2;
0 comments (0 inline, 0 general)