Browse Source

Fix attack times

hl_urbicide
Roman Chistokhodov 4 years ago
parent
commit
0e251e6f09
  1. 2
      dlls/weapons.cpp

2
dlls/weapons.cpp

@ -596,7 +596,7 @@ BOOL CanAttack( float attack_time, float curtime, BOOL isPredicted )
} }
else else
{ {
return ( attack_time <= 0.0f ) ? TRUE : FALSE; return ( (static_cast<int>(::floor(attack_time * 1000.0f)) * 1000.0f) <= 0.0f) ? TRUE : FALSE;
} }
} }

Loading…
Cancel
Save