This commit is contained in:
in0finite 2021-12-19 23:23:20 +01:00
parent 066835cd78
commit 366802644f

View file

@ -52,10 +52,10 @@ namespace SanAndreasUnity.Behaviours.Peds.States
BaseMovementState currentState,
BaseMovementState targetState)
{
if (currentState.TimeSinceActivated <= currentState.TimeUntilStateCanBeSwitchedToOtherMovementState)
if (currentState.TimeSinceActivated < currentState.TimeUntilStateCanBeSwitchedToOtherMovementState)
return false;
if (targetState.TimeSinceDeactivated <= targetState.TimeUntilStateCanBeEnteredFromOtherMovementState)
if (targetState.TimeSinceDeactivated < targetState.TimeUntilStateCanBeEnteredFromOtherMovementState)
return false;
return true;