Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request FWGS#153 from FreeSlave/attack_time
Browse files Browse the repository at this point in the history
Fix attack times
  • Loading branch information
nekonomicon committed Feb 10, 2021
2 parents a0a3004 + 0e251e6 commit 4a02ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 4a02ced

Please sign in to comment.