Mirroring levels. Mirroring the wall geometry works, but ruins and background sprites are not placed at the correct positions yet.
This commit is contained in:
@@ -231,6 +231,8 @@ namespace Barotrauma
|
||||
Rand.Range(0.0f, level.Size.X, Rand.RandSync.Server),
|
||||
Rand.Range(0.0f, level.Size.Y, Rand.RandSync.Server));
|
||||
|
||||
if (level.Mirrored) randomPos.X = level.Size.X - randomPos.X;
|
||||
|
||||
if (prefab.SpawnPos == BackgroundSpritePrefab.SpawnPosType.None) return randomPos;
|
||||
|
||||
List<GraphEdge> edges = new List<GraphEdge>();
|
||||
|
||||
Reference in New Issue
Block a user