Fixed linked subs not spawning
Turns out the game actually sets Screen.Selected to null when the game starts, so the server would break on EditMapScreen checks.
This commit is contained in:
@@ -175,7 +175,7 @@ namespace Barotrauma
|
||||
public bool AtEndPosition
|
||||
{
|
||||
get
|
||||
{
|
||||
{
|
||||
if (Level.Loaded == null) return false;
|
||||
return (Vector2.Distance(Position + HiddenSubPosition, Level.Loaded.EndPosition) < Level.ExitDistance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user