Fix connecting to a server with the lobby enabled.

This commit is contained in:
Pieter-Jan Briers
2019-07-15 18:57:17 +02:00
parent cdcafbada6
commit 806e95b382
2 changed files with 2 additions and 2 deletions

View File

@@ -195,11 +195,11 @@ namespace Content.Client
var inputMan = IoCManager.Resolve<IInputManager>();
ContentContexts.SetupContexts(inputMan.Contexts);
IoCManager.Resolve<IGameHud>().Initialize();
IoCManager.Resolve<IClientNotifyManager>().Initialize();
IoCManager.Resolve<IClientGameTicker>().Initialize();
IoCManager.Resolve<IOverlayManager>().AddOverlay(new ParallaxOverlay());
IoCManager.Resolve<IChatManager>().Initialize();
IoCManager.Resolve<IGameHud>().Initialize();
}
public override void Update(ModUpdateLevel level, float frameTime)

View File

@@ -178,7 +178,7 @@ namespace Content.Client.GameTicking
_tutorialButton = null;
}
_gameHud.RootControl?.Parent.RemoveChild(_gameHud.RootControl);
_gameHud.RootControl.Parent?.RemoveChild(_gameHud.RootControl);
_tickerState = TickerState.InLobby;