This commit is contained in:
in0finite 2021-10-17 20:53:34 +02:00
parent 972ee0a873
commit beaf2d5484

View file

@ -75,7 +75,7 @@ namespace SanAndreasUnity.Behaviours.Peds.States
public bool CanEnterState(Vehicle vehicle, Vehicle.SeatAlignment seatAlignment) public bool CanEnterState(Vehicle vehicle, Vehicle.SeatAlignment seatAlignment)
{ {
if (Time.time - m_lastTimeWhenDeactivated > this.timeUntilAbleToSwitchState) if (Time.time - m_lastTimeWhenDeactivated < this.timeUntilAbleToSwitchState)
return false; return false;
var w = m_ped.CurrentWeapon; var w = m_ped.CurrentWeapon;