Merge pull request #10427 from tupaschoal/fix-10426

Fix #10426: Deleting path moves preview in opposite direction
This commit is contained in:
Tulio Leao authored and Duncan committed 2019-12-22 12:45:23 +00:00
1 parent 341f85ef5f
commit 0416c2eaa3
1 file changed
+2 -1
+2 -1
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;
}