Skip to content

Commit

Permalink
* preserve decimal precision for skill percentage calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jprzimba committed Jan 2, 2025
1 parent 684d7bb commit f9ec966
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 @@ -893,7 +893,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 f9ec966

Please sign in to comment.