1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Merge pull request #10427 from tupaschoal/fix-10426

Fix #10426: Deleting path moves preview in opposite direction
This commit is contained in:
Tulio Leao
2019-12-22 09:45:23 -03:00
committed by Duncan
parent 341f85ef5f
commit 0416c2eaa3

View File

@@ -1051,10 +1051,11 @@ static void footpath_remove_tile_element(TileElement* tileElement)
footpath_remove(gFootpathConstructFromPosition, GAME_COMMAND_FLAG_APPLY);
// Move selection
edge = direction_reverse(edge);
gFootpathConstructFromPosition.x -= CoordsDirectionDelta[edge].x;
gFootpathConstructFromPosition.y -= CoordsDirectionDelta[edge].y;
gFootpathConstructFromPosition.z = z * 8;
gFootpathConstructDirection = direction_reverse(edge);
gFootpathConstructDirection = edge;
gFootpathConstructValidDirections = 255;
}