Skip to content

Commit

Permalink
Fix orbit cam always switching to overview after timeout
Browse files Browse the repository at this point in the history
I forgor the extra = in ==
  • Loading branch information
toberge committed Jun 8, 2024
1 parent 615a5ff commit da32d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Control&Input/OrbitCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private IEnumerator WaitAndStopTrackingRagdoll()
InputManager.onSelect += SwitchTarget;
InputManager.onFirePerformed += SwitchTarget;
yield return new WaitForSeconds(3f);
var isStillOnPlayer = target = player.AiAimSpot;
var isStillOnPlayer = target == player.AiAimSpot;
if (isStillOnPlayer)
{
StopTracking();
Expand Down

0 comments on commit da32d84

Please sign in to comment.