From f9ec9666c6f28418d2ecdb77e6ff671027017250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo?= Date: Thu, 2 Jan 2025 15:31:14 -0300 Subject: [PATCH] * preserve decimal precision for skill percentage calculation ty @jeansouzak --- src/creatures/players/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/creatures/players/player.cpp b/src/creatures/players/player.cpp index b1fddc90..5398698d 100644 --- a/src/creatures/players/player.cpp +++ b/src/creatures/players/player.cpp @@ -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 {