mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use const& in wouldCollideWithDodgemsTrackEdge
This commit is contained in:
parent
4389670939
commit
864a40e22c
|
@ -6397,7 +6397,7 @@ int32_t Vehicle::UpdateMotionDodgems()
|
|||
* rct2: 0x006DD365
|
||||
*/
|
||||
static bool wouldCollideWithDodgemsTrackEdge(
|
||||
CoordsXY coords, CoordsXY trackLocation, uint32_t trackType, uint16_t dodgemsCarRadius)
|
||||
const CoordsXY& coords, const CoordsXY& trackLocation, uint32_t trackType, uint16_t dodgemsCarRadius)
|
||||
{
|
||||
int16_t rideLeft = trackLocation.x + DodgemsTrackSize[trackType].left;
|
||||
int16_t rideRight = trackLocation.x + DodgemsTrackSize[trackType].right;
|
||||
|
|
Loading…
Reference in New Issue