mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r26755) -Fix (r26747) [FS#6093]: Silence MSVC warning.
This commit is contained in:
parent
a81e092daf
commit
17872c8be1
|
@ -2360,7 +2360,7 @@ static void SpawnAdvancedVisualEffect(const Vehicle *v)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue