Use operator -= and += of CoordsXY

This commit is contained in:
Tulio Leao 2019-11-25 23:08:31 -03:00
parent 2af1f1feba
commit fb95154000
1 changed files with 2 additions and 4 deletions

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 });