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:
juanjp600
2017-06-21 14:51:36 -03:00
parent 0740579f62
commit 7ab01b8237
5 changed files with 29 additions and 7 deletions
+1 -1
View File
@@ -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);
}