Skip to content

Commit

Permalink
Merge pull request #144 from nooperation/fix_MONSTERUNIQUE_CalculateP…
Browse files Browse the repository at this point in the history
…ercentage_OrderOfOperations

Fix MONSTERUNIQUE_CalculatePercentage order of operations
  • Loading branch information
Lectem authored Feb 27, 2024
2 parents 0b3fa59 + 35f769c commit 78b901a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/D2Game/src/MONSTER/MonsterUnique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,14 @@ int32_t __fastcall MONSTERUNIQUE_CalculatePercentage(int32_t a1, int32_t a2, int

if (a3 <= a2 >> 4)
{
return a1 * a2 / a3;
return a1 * (a2 / a3);
}
}
else
{
if (a3 <= a1 >> 4)
{
return a2 * a1 / a3;
return a2 * (a1 / a3);
}
}

Expand Down

0 comments on commit 78b901a

Please sign in to comment.