Fixed main path waypoints not getting mirrored in mirrored levels (cherry-picked from 295fc31).
This commit is contained in:
@@ -356,7 +356,7 @@ namespace Barotrauma
|
|||||||
foreach (InterestingPosition positionOfInterest in positionsOfInterest)
|
foreach (InterestingPosition positionOfInterest in positionsOfInterest)
|
||||||
{
|
{
|
||||||
WayPoint wayPoint = new WayPoint(
|
WayPoint wayPoint = new WayPoint(
|
||||||
mirror ? new Vector2(borders.X - positionOfInterest.Position.X, positionOfInterest.Position.Y) : positionOfInterest.Position,
|
positionOfInterest.Position,
|
||||||
SpawnType.Enemy,
|
SpawnType.Enemy,
|
||||||
submarine: null);
|
submarine: null);
|
||||||
}
|
}
|
||||||
@@ -477,6 +477,11 @@ namespace Barotrauma
|
|||||||
positionsOfInterest[i].PositionType);
|
positionsOfInterest[i].PositionType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (WayPoint waypoint in WayPoint.WayPointList)
|
||||||
|
{
|
||||||
|
waypoint.Move(new Vector2((borders.Width / 2 - waypoint.Position.X) * 2, 0.0f));
|
||||||
|
}
|
||||||
|
|
||||||
startPosition.X = borders.Width - startPosition.X;
|
startPosition.X = borders.Width - startPosition.X;
|
||||||
endPosition.X = borders.Width - endPosition.X;
|
endPosition.X = borders.Width - endPosition.X;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user