Show the session page again after disconnecting while playing a cinematic path.

This was SVN commit r19860.
This commit is contained in:
elexis
2017-06-30 21:15:35 +00:00
parent f9f137eea9
commit 96df0ad875
2 changed files with 2 additions and 1 deletions
@@ -658,6 +658,7 @@ function handleNetStatusMessage(message)
Engine.SetPaused(true, false);
g_Disconnected = true;
updateCinemaPath();
closeOpenDialogs();
}
}
@@ -867,7 +867,7 @@ function confirmExit()
function updateCinemaPath()
{
let isPlayingCinemaPath = GetSimState().cinemaPlaying;
let isPlayingCinemaPath = GetSimState().cinemaPlaying && !g_Disconnected;
Engine.GetGUIObjectByName("sn").hidden = !g_ShowGUI || isPlayingCinemaPath;
Engine.Renderer_SetSilhouettesEnabled(!isPlayingCinemaPath && Engine.ConfigDB_GetValue("user", "silhouettes") == "true");