Resetting EntityEvent & EntitySpawner IDs when starting a new round, LOS effect is enabled when a client takes control of a character

This commit is contained in:
Regalis
2017-01-09 18:22:37 +02:00
parent a75ef8ee51
commit ff96f152ce
6 changed files with 15 additions and 2 deletions

View File

@@ -2397,6 +2397,9 @@ namespace Barotrauma
{
GameMain.Client.Character = character;
Controlled = character;
GameMain.LightManager.LosEnabled = true;
character.memInput.Clear();
character.memPos.Clear();
character.memLocalPos.Clear();