mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-15 00:37:09 +00:00
fix
This commit is contained in:
parent
066835cd78
commit
366802644f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue