From 6e231b7e7d208af178f69515aa263b6ac9b396ee Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Sun, 28 Jan 2018 19:15:23 +0200 Subject: [PATCH] Lighting is forced back on when a client starts a round (-> can't disable lighting by using the console command before joining a server). Closes #238 --- Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs b/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs index dd8cd532f..e32b12051 100644 --- a/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs +++ b/Barotrauma/BarotraumaClient/Source/Networking/GameClient.cs @@ -666,6 +666,8 @@ namespace Barotrauma.Networking private IEnumerable StartGame(NetIncomingMessage inc) { if (Character != null) Character.Remove(); + + GameMain.LightManager.LightingEnabled = true; //enable spectate button in case we fail to start the round now //(for example, due to a missing sub file or an error)