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

This commit is contained in:
Joonas Rikkonen
2018-01-28 19:15:23 +02:00
parent 8b3a089884
commit 6e231b7e7d

View File

@@ -666,6 +666,8 @@ namespace Barotrauma.Networking
private IEnumerable<object> 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)