Browse Source

Merge pull request #153 from FreeSlave/attack_time

Fix attack times
hl_urbicide
nekonomicon 4 years ago committed by GitHub
parent
commit
4a02ced926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dlls/weapons.cpp

2
dlls/weapons.cpp

@ -596,7 +596,7 @@ BOOL CanAttack( float attack_time, float curtime, BOOL isPredicted ) @@ -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;
}
}

Loading…
Cancel
Save