diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-08 09:52:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-08 09:52:58 +0300 |
commit | 48f6526192e96ab8dce221cf3efb980aa9e58583 (patch) | |
tree | 0a77d7f98ab567232b581c90d0d5f11d15bed672 /src/gui | |
parent | 604cbb82a3e126e49142a4357a49998649227753 (diff) | |
download | manaverse-48f6526192e96ab8dce221cf3efb980aa9e58583.tar.gz manaverse-48f6526192e96ab8dce221cf3efb980aa9e58583.tar.bz2 manaverse-48f6526192e96ab8dce221cf3efb980aa9e58583.tar.xz manaverse-48f6526192e96ab8dce221cf3efb980aa9e58583.zip |
Fix possible issue in kill stats window if get too many exp at same time.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/killstats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/killstats.cpp b/src/gui/windows/killstats.cpp index bcedd8fab..e448d7470 100644 --- a/src/gui/windows/killstats.cpp +++ b/src/gui/windows/killstats.cpp @@ -240,7 +240,7 @@ void KillStats::gainXp(int64_t xp) double timeDiff = difftime(cur_time, mKillTimer) / 60; - if (timeDiff <= 0.001) + if (timeDiff <= 0.01) timeDiff = 1; const int64_t exp = PlayerInfo::getAttribute64(Attributes::PLAYER_EXP); |