Skip to content

Commit

Permalink
fix: preserve decimal precision for skill percentage calculation (#3207)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeansouzak authored Jan 2, 2025
1 parent 15e3f1d commit 8e6a4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ void Player::addSkillAdvance(skills_t skill, uint64_t count) {

skills[skill].tries += count;

uint32_t newPercent;
double_t newPercent;
if (nextReqTries > currReqTries) {
newPercent = Player::getPercentLevel(skills[skill].tries, nextReqTries);
} else {
Expand Down

0 comments on commit 8e6a4fd

Please sign in to comment.