(439f256af) Don't reset the los if there is no client (single player). Fixes los resetting between game sessions (less tedious debugging).
This commit is contained in:
@@ -159,8 +159,14 @@ namespace Barotrauma
|
|||||||
public void StartRound(Level level, bool reloadSub = true, bool loadSecondSub = false, bool mirrorLevel = false)
|
public void StartRound(Level level, bool reloadSub = true, bool loadSecondSub = false, bool mirrorLevel = false)
|
||||||
{
|
{
|
||||||
#if CLIENT
|
#if CLIENT
|
||||||
GameMain.LightManager.LosEnabled = GameMain.Client == null || GameMain.Client.CharacterInfo != null;
|
if (GameMain.Client == null)
|
||||||
if (GameMain.Client == null) GameMain.LightManager.LosMode = GameMain.Config.LosMode;
|
{
|
||||||
|
GameMain.LightManager.LosMode = GameMain.Config.LosMode;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GameMain.LightManager.LosEnabled = GameMain.Client.CharacterInfo != null;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
this.Level = level;
|
this.Level = level;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user