Skip to content

Commit

Permalink
Applied sam vanheer fix proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3Fr33m4n committed Mar 10, 2023
1 parent 51f0576 commit 14cd0ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/server/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,8 @@ BOOL CanAttack(float attack_time, float curtime, BOOL isPredicted)
}
else
{
return (attack_time <= 0.0) ? TRUE : FALSE;
//return ((static_cast<int>(std::floor(attack_time * 1000.0)) * 1000.0) <= 0.0) ? TRUE : FALSE;
//return (attack_time <= 0.0) ? TRUE : FALSE;
return ((static_cast<int>(std::floor(attack_time * 1000.0)) * 1000.0) <= 0.0) ? TRUE : FALSE;
}
}

Expand Down Expand Up @@ -1623,4 +1623,4 @@ IMPLEMENT_SAVERESTORE(CDisplacer, CBasePlayerWeapon)
TYPEDESCRIPTION CSporelauncher::m_SaveData[] = {
DEFINE_FIELD(CSporelauncher, m_iSquidSpitSprite, FIELD_INTEGER),
};
IMPLEMENT_SAVERESTORE(CSporelauncher, CShotgun)
IMPLEMENT_SAVERESTORE(CSporelauncher, CShotgun)

0 comments on commit 14cd0ed

Please sign in to comment.