From 0e251e6f095514b3b27a0d99b2217dab09d6b612 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Wed, 10 Feb 2021 20:21:45 +0300 Subject: [PATCH] Fix attack times --- dlls/weapons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }