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:
@@ -666,6 +666,8 @@ namespace Barotrauma.Networking
|
|||||||
private IEnumerable<object> StartGame(NetIncomingMessage inc)
|
private IEnumerable<object> StartGame(NetIncomingMessage inc)
|
||||||
{
|
{
|
||||||
if (Character != null) Character.Remove();
|
if (Character != null) Character.Remove();
|
||||||
|
|
||||||
|
GameMain.LightManager.LightingEnabled = true;
|
||||||
|
|
||||||
//enable spectate button in case we fail to start the round now
|
//enable spectate button in case we fail to start the round now
|
||||||
//(for example, due to a missing sub file or an error)
|
//(for example, due to a missing sub file or an error)
|
||||||
|
|||||||
Reference in New Issue
Block a user