Skip to content

Commit

Permalink
Fixed distance to use float units!
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn committed Jun 30, 2023
1 parent 4a54ffc commit 9b6d3aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AccuracyFix/AccuracyFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ bool CAccuracyFix::TraceLine(const float* start, const float* end, int fNoMonste

if (this->GetUserAiming(pentToSkip, &this->m_Data[EntityIndex].m_Target, &this->m_Data[EntityIndex].m_Body, aimDistance) && this->m_Data[EntityIndex].m_TM)
{
auto fwdDistance = (int)this->m_af_accuracy[Player->m_pActiveItem->m_iId]->value;
auto fwdDistance = this->m_af_accuracy[Player->m_pActiveItem->m_iId]->value;

if (fwdDistance > 0)
{
if (this->m_af_accuracy_all->value > 0)
{
fwdDistance = (int)this->m_af_accuracy_all->value;
fwdDistance = this->m_af_accuracy_all->value;
}

g_engfuncs.pfnMakeVectors(pentToSkip->v.v_angle);
Expand Down
2 changes: 1 addition & 1 deletion AccuracyFix/MetaMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugin_info_t Plugin_info =
{
META_INTERFACE_VERSION,
"Accuracy Fix",
"1.0.0",
"1.0.1",
__DATE__,
"SmileY",
"https://pugbr.net",
Expand Down

0 comments on commit 9b6d3aa

Please sign in to comment.