mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use operator -= and += of CoordsXY
This commit is contained in:
parent
2af1f1feba
commit
fb95154000
|
@ -560,12 +560,10 @@ void viewport_interaction_remove_park_entrance(TileElement* tileElement, CoordsX
|
||||||
switch (tileElement->AsEntrance()->GetSequenceIndex())
|
switch (tileElement->AsEntrance()->GetSequenceIndex())
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
mapCoords.x += CoordsDirectionDelta[rotation].x;
|
mapCoords += CoordsDirectionDelta[rotation];
|
||||||
mapCoords.y += CoordsDirectionDelta[rotation].y;
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
mapCoords.x -= CoordsDirectionDelta[rotation].x;
|
mapCoords -= CoordsDirectionDelta[rotation];
|
||||||
mapCoords.y -= CoordsDirectionDelta[rotation].y;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
auto parkEntranceRemoveAction = ParkEntranceRemoveAction({ mapCoords.x, mapCoords.y, tileElement->base_height * 8 });
|
auto parkEntranceRemoveAction = ParkEntranceRemoveAction({ mapCoords.x, mapCoords.y, tileElement->base_height * 8 });
|
||||||
|
|
Loading…
Reference in New Issue