mirror of https://github.com/FWGS/hlsdk-xash3d
commit
4a02ced926
|
@ -596,7 +596,7 @@ BOOL CanAttack( float attack_time, float curtime, BOOL isPredicted )
|
|||
}
|
||||
else
|
||||
{
|
||||
return ( attack_time <= 0.0f ) ? TRUE : FALSE;
|
||||
return ( (static_cast<int>(::floor(attack_time * 1000.0f)) * 1000.0f) <= 0.0f) ? TRUE : FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue