From 160cd83c2e63769b73aa27336c3a2c30cfb7772d Mon Sep 17 00:00:00 2001 From: in0finite Date: Mon, 28 Mar 2022 00:22:43 +0200 Subject: [PATCH] fix warning --- Assets/Scripts/Behaviours/PedAI/FollowState.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Assets/Scripts/Behaviours/PedAI/FollowState.cs b/Assets/Scripts/Behaviours/PedAI/FollowState.cs index 2bdfede1..b86ef08f 100644 --- a/Assets/Scripts/Behaviours/PedAI/FollowState.cs +++ b/Assets/Scripts/Behaviours/PedAI/FollowState.cs @@ -173,7 +173,6 @@ namespace SanAndreasUnity.Behaviours.Peds.AI Vector3 targetPos = this.LeaderPed.transform.position; float currentStoppingDistance = 3f; - bool ignoreCalculatedDestination = false; if (this.LeaderPed.IsInVehicleSeat && !this.MyPed.IsInVehicle) { @@ -202,7 +201,6 @@ namespace SanAndreasUnity.Behaviours.Peds.AI // move toward the seat targetPos = closestfreeSeat.tr.position; currentStoppingDistance = 0.01f; - ignoreCalculatedDestination = true; } }