Skip to content

Commit

Permalink
Fix attack times
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Feb 10, 2021
1 parent 9fc712d commit 0e251e6
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 0e251e6

Please sign in to comment.