Adjusting submarine spawnposition if the sub (or any docked subs) intersect with walls
This commit is contained in:
@@ -200,7 +200,7 @@ namespace Barotrauma
|
||||
{
|
||||
level.Generate();
|
||||
|
||||
submarine.SetPosition(level.StartPosition - new Vector2(0.0f, 2000.0f));
|
||||
submarine.SetPosition(submarine.FindSpawnPos(level.StartPosition - new Vector2(0.0f, 2000.0f)));
|
||||
|
||||
//secondSub.SetPosition(level.EndPosition - new Vector2(0.0f, 2000.0f));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user