1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Use operator -= and += of CoordsXY

This commit is contained in:
Tulio Leao
2019-11-25 23:08:31 -03:00
parent 2af1f1feba
commit fb95154000

View File

@@ -560,12 +560,10 @@ void viewport_interaction_remove_park_entrance(TileElement* tileElement, CoordsX
switch (tileElement->AsEntrance()->GetSequenceIndex())
{
case 1:
mapCoords.x += CoordsDirectionDelta[rotation].x;
mapCoords.y += CoordsDirectionDelta[rotation].y;
mapCoords += CoordsDirectionDelta[rotation];
break;
case 2:
mapCoords.x -= CoordsDirectionDelta[rotation].x;
mapCoords.y -= CoordsDirectionDelta[rotation].y;
mapCoords -= CoordsDirectionDelta[rotation];
break;
}
auto parkEntranceRemoveAction = ParkEntranceRemoveAction({ mapCoords.x, mapCoords.y, tileElement->base_height * 8 });