UpdateControlled only runs on the controlled character (-> fixes camera always focusing on the last spawned character)
This commit is contained in:
@@ -194,10 +194,9 @@ namespace Barotrauma
|
||||
|
||||
partial void UpdateControlled(float deltaTime,Camera cam)
|
||||
{
|
||||
if (controlled == this)
|
||||
{
|
||||
ControlLocalPlayer(deltaTime, cam);
|
||||
}
|
||||
if (controlled != this) return;
|
||||
|
||||
ControlLocalPlayer(deltaTime, cam);
|
||||
|
||||
Lights.LightManager.ViewTarget = this;
|
||||
CharacterHUD.Update(deltaTime, this);
|
||||
|
||||
Reference in New Issue
Block a user