Fix attack times

This commit is contained in:
Roman Chistokhodov 2021-02-10 20:21:45 +03:00
parent 9fc712da01
commit 0e251e6f09
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}