(50d313d01) Fixed spectate button staying visible when a round ends while a client is in the lobby.
This commit is contained in:
@@ -1142,9 +1142,13 @@ namespace Barotrauma.Networking
|
|||||||
|
|
||||||
public IEnumerable<object> EndGame(string endMessage)
|
public IEnumerable<object> EndGame(string endMessage)
|
||||||
{
|
{
|
||||||
if (!gameStarted) yield return CoroutineStatus.Success;
|
if (!gameStarted)
|
||||||
|
{
|
||||||
|
GameMain.NetLobbyScreen.Select();
|
||||||
|
yield return CoroutineStatus.Success;
|
||||||
|
}
|
||||||
|
|
||||||
if (GameMain.GameSession != null) GameMain.GameSession.GameMode.End(endMessage);
|
if (GameMain.GameSession != null) { GameMain.GameSession.GameMode.End(endMessage); }
|
||||||
|
|
||||||
gameStarted = false;
|
gameStarted = false;
|
||||||
Character.Controlled = null;
|
Character.Controlled = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user