Skip to content

Commit

Permalink
Fix issues from review
Browse files Browse the repository at this point in the history
  • Loading branch information
hdpoliveira committed Jun 20, 2020
1 parent 8b113de commit 38ce2d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/openrct2/ride/Vehicle.cpp
Expand Up @@ -7674,7 +7674,7 @@ bool Vehicle::UpdateMotionCollisionDetection(const CoordsXYZ& loc, uint16_t* oth
return direction < 0xF;
}

auto location = CoordsXY{ loc.x, loc.y };
auto location = CoordsXY{ loc };

bool mayCollide = false;
Vehicle* collideVehicle = nullptr;
Expand Down Expand Up @@ -8237,8 +8237,8 @@ bool Vehicle::UpdateTrackMotionForwards(rct_ride_entry_vehicle* vehicleEntry, Ri
const auto moveInfo = GetMoveInfo();
trackType = GetTrackType();
{
CoordsXYZ loc = { TrackLocation.x + moveInfo->x, TrackLocation.y + moveInfo->y,
TrackLocation.z + moveInfo->z + RideTypeDescriptors[curRide->type].Heights.VehicleZOffset };
auto loc = TrackLocation
+ CoordsXYZ{ moveInfo->x, moveInfo->y, moveInfo->z + RideTypeDescriptors[curRide->type].Heights.VehicleZOffset };

regs.ebx = 0;
if (loc.x != unk_F64E20.x)
Expand Down Expand Up @@ -8559,8 +8559,8 @@ loc_6DBA33:;
track_progress = regs.ax;
{
const rct_vehicle_info* moveInfo = GetMoveInfo();
CoordsXYZ loc = { TrackLocation.x + moveInfo->x, TrackLocation.y + moveInfo->y,
TrackLocation.z + moveInfo->z + RideTypeDescriptors[curRide->type].Heights.VehicleZOffset };
auto loc = TrackLocation
+ CoordsXYZ{ moveInfo->x, moveInfo->y, moveInfo->z + RideTypeDescriptors[curRide->type].Heights.VehicleZOffset };

regs.ebx = 0;
if (loc.x != unk_F64E20.x)
Expand Down

0 comments on commit 38ce2d0

Please sign in to comment.