mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix CoordsXY sum and subtract operators (#10128)
This commit is contained in:
parent
1d8f56ca80
commit
6c35a0234e
|
@ -105,12 +105,12 @@ struct CoordsXY
|
|||
|
||||
const CoordsXY operator+(const CoordsXY& rhs) const
|
||||
{
|
||||
return { rhs.x + x, rhs.y + y };
|
||||
return { x + rhs.x, y + rhs.y };
|
||||
}
|
||||
|
||||
const CoordsXY operator-(const CoordsXY& rhs) const
|
||||
{
|
||||
return { rhs.x - x, rhs.y - y };
|
||||
return { x - rhs.x, y - rhs.y };
|
||||
}
|
||||
|
||||
CoordsXY Rotate(int32_t direction) const
|
||||
|
|
Loading…
Reference in New Issue