Unstable 0.1500.0.0
This commit is contained in:
@@ -325,7 +325,6 @@ namespace Barotrauma
|
||||
get { return LevelData.Seed; }
|
||||
}
|
||||
|
||||
|
||||
public static float? ForcedDifficulty;
|
||||
public float Difficulty
|
||||
{
|
||||
@@ -3020,13 +3019,6 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
public string GetWreckIDTag(string originalTag, Submarine wreck)
|
||||
{
|
||||
string shortSeed = ToolBox.StringToInt(LevelData.Seed + wreck?.Info.Name).ToString();
|
||||
if (shortSeed.Length > 6) { shortSeed = shortSeed.Substring(0, 6); }
|
||||
return originalTag + "_" + shortSeed;
|
||||
}
|
||||
|
||||
public bool IsCloseToStart(Vector2 position, float minDist) => IsCloseToStart(position.ToPoint(), minDist);
|
||||
public bool IsCloseToEnd(Vector2 position, float minDist) => IsCloseToEnd(position.ToPoint(), minDist);
|
||||
|
||||
@@ -3891,12 +3883,39 @@ namespace Barotrauma
|
||||
LevelObjectManager = null;
|
||||
}
|
||||
|
||||
AbyssIslands?.Clear();
|
||||
AbyssResources?.Clear();
|
||||
Caves?.Clear();
|
||||
Tunnels?.Clear();
|
||||
PathPoints?.Clear();
|
||||
PositionsOfInterest?.Clear();
|
||||
|
||||
wreckPositions?.Clear();
|
||||
Wrecks?.Clear();
|
||||
|
||||
BeaconStation = null;
|
||||
beaconSonar = null;
|
||||
StartOutpost = null;
|
||||
EndOutpost = null;
|
||||
|
||||
blockedRects?.Clear();
|
||||
|
||||
EntitiesBeforeGenerate?.Clear();
|
||||
EqualityCheckValues?.Clear();
|
||||
|
||||
if (Ruins != null)
|
||||
{
|
||||
Ruins.Clear();
|
||||
Ruins = null;
|
||||
}
|
||||
|
||||
bottomPositions?.Clear();
|
||||
BottomBarrier = null;
|
||||
TopBarrier = null;
|
||||
SeaFloor = null;
|
||||
|
||||
distanceField = null;
|
||||
|
||||
if (ExtraWalls != null)
|
||||
{
|
||||
foreach (LevelWall w in ExtraWalls) { w.Dispose(); }
|
||||
@@ -3908,7 +3927,9 @@ namespace Barotrauma
|
||||
UnsyncedExtraWalls = null;
|
||||
}
|
||||
|
||||
tempCells?.Clear();
|
||||
cells = null;
|
||||
cellGrid = null;
|
||||
|
||||
if (bodies != null)
|
||||
{
|
||||
@@ -3916,6 +3937,9 @@ namespace Barotrauma
|
||||
bodies = null;
|
||||
}
|
||||
|
||||
StartLocation = null;
|
||||
EndLocation = null;
|
||||
|
||||
Loaded = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user