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())
|
||||
{
|
||||
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 });
|
||||
|
|
Loading…
Reference in New Issue