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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user