1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Remove unnecessary MoveTo code from MoveRelativeDistance

This commit is contained in:
Bas
2020-12-22 15:04:35 +01:00
parent 559c327c1e
commit 2b2efee7a8

View File

@@ -825,16 +825,6 @@ void Vehicle::MoveRelativeDistance(int32_t distance)
SetUpdateFlag(VEHICLE_UPDATE_FLAG_SINGLE_CAR_POSITION);
UpdateTrackMotion(nullptr);
ClearUpdateFlag(VEHICLE_UPDATE_FLAG_SINGLE_CAR_POSITION);
const Ride* curRide = GetRide();
const rct_vehicle_info* moveInfo = GetMoveInfo();
MoveTo({ TrackLocation.x + moveInfo->x, TrackLocation.y + moveInfo->y,
TrackLocation.z + moveInfo->z + RideTypeDescriptors[curRide->type].Heights.VehicleZOffset });
sprite_direction = moveInfo->direction;
bank_rotation = moveInfo->bank_rotation;
vehicle_sprite_type = moveInfo->vehicle_sprite_type;
}
Vehicle* try_get_vehicle(uint16_t spriteIndex)