mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use const& in DodgemsCarWouldCollideAt
This commit is contained in:
parent
864a40e22c
commit
83d88c0939
|
@ -6408,7 +6408,7 @@ static bool wouldCollideWithDodgemsTrackEdge(
|
||||||
|| coords.x + dodgemsCarRadius > rideRight || coords.y + dodgemsCarRadius > rideBottom;
|
|| coords.x + dodgemsCarRadius > rideRight || coords.y + dodgemsCarRadius > rideBottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Vehicle::DodgemsCarWouldCollideAt(CoordsXY coords, uint16_t* collidedWith) const
|
bool Vehicle::DodgemsCarWouldCollideAt(const CoordsXY& coords, uint16_t* collidedWith) const
|
||||||
{
|
{
|
||||||
uint32_t trackType = track_type >> 2;
|
uint32_t trackType = track_type >> 2;
|
||||||
|
|
||||||
|
|
|
@ -305,7 +305,7 @@ struct Vehicle : SpriteBase
|
||||||
void SetState(VEHICLE_STATUS vehicleStatus, uint8_t subState = 0);
|
void SetState(VEHICLE_STATUS vehicleStatus, uint8_t subState = 0);
|
||||||
bool IsGhost() const;
|
bool IsGhost() const;
|
||||||
void UpdateSoundParams(std::vector<rct_vehicle_sound_params>& vehicleSoundParamsList) const;
|
void UpdateSoundParams(std::vector<rct_vehicle_sound_params>& vehicleSoundParamsList) const;
|
||||||
bool DodgemsCarWouldCollideAt(CoordsXY coords, uint16_t* spriteId) const;
|
bool DodgemsCarWouldCollideAt(const CoordsXY& coords, uint16_t* spriteId) const;
|
||||||
int32_t UpdateTrackMotion(int32_t* outStation);
|
int32_t UpdateTrackMotion(int32_t* outStation);
|
||||||
rct_ride_entry_vehicle* Entry() const;
|
rct_ride_entry_vehicle* Entry() const;
|
||||||
Vehicle* TrainHead() const;
|
Vehicle* TrainHead() const;
|
||||||
|
|
Loading…
Reference in New Issue