diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index ec98e0ca..1795c191 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -596,7 +596,7 @@ BOOL CanAttack( float attack_time, float curtime, BOOL isPredicted ) } else { - return ( attack_time <= 0.0f ) ? TRUE : FALSE; + return ( (static_cast(::floor(attack_time * 1000.0f)) * 1000.0f) <= 0.0f) ? TRUE : FALSE; } }