Fixed NullReferenceExceptions if in the netlobby when a round ends, fixed chatmsgbox staying disabled after being stunned

This commit is contained in:
Regalis
2016-08-16 20:18:19 +03:00
parent 6c5452570e
commit 26b6847bca
3 changed files with 8 additions and 6 deletions

View File

@@ -164,18 +164,18 @@ namespace Barotrauma
{
if (Mission != null) Mission.End();
if (GameMain.Server!=null)
{
if (GameMain.Server != null)
{
CoroutineManager.StartCoroutine(GameMain.Server.EndGame(endMessage));
}
else if (GameMain.Client==null)
else if (GameMain.Client == null)
{
//Submarine.Unload();
GameMain.LobbyScreen.Select();
}
if (shiftSummary!=null)
if (shiftSummary != null)
{
GUIFrame summaryFrame = shiftSummary.CreateSummaryFrame(endMessage);
GUIMessageBox.MessageBoxes.Enqueue(summaryFrame);