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)
|
partial void UpdateControlled(float deltaTime,Camera cam)
|
||||||
{
|
{
|
||||||
if (controlled == this)
|
if (controlled != this) return;
|
||||||
{
|
|
||||||
ControlLocalPlayer(deltaTime, cam);
|
ControlLocalPlayer(deltaTime, cam);
|
||||||
}
|
|
||||||
|
|
||||||
Lights.LightManager.ViewTarget = this;
|
Lights.LightManager.ViewTarget = this;
|
||||||
CharacterHUD.Update(deltaTime, this);
|
CharacterHUD.Update(deltaTime, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user