Fixed round ending tickbox not being visible client-side if the client is not controlling character (despite servers now allowing votes from players who've spawned at least once during the round). Closes #500

This commit is contained in:
Joonas Rikkonen
2018-07-19 10:47:39 +03:00
parent 30a453191f
commit c901b75ff1
4 changed files with 34 additions and 17 deletions
@@ -188,6 +188,7 @@ namespace Barotrauma
controlled = this;
IsRemotePlayer = false;
GameMain.Client.HasSpawned = true;
GameMain.Client.Character = this;
GameMain.LightManager.LosEnabled = true;
}
@@ -286,6 +287,7 @@ namespace Barotrauma
if (GameMain.Client.ID == ownerId)
{
GameMain.Client.HasSpawned = true;
GameMain.Client.Character = character;
Controlled = character;