summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game-server/character.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp
index 57055041..89249022 100644
--- a/src/game-server/character.cpp
+++ b/src/game-server/character.cpp
@@ -504,9 +504,13 @@ void Character::recalculateLevel()
std::map<int, int>::const_iterator a;
for (a = getSkillBegin(); a != getSkillEnd(); a++)
{
- float expGot = getExpGot(a->first);
- float expNeed = getExpNeeded(a->first);
- levels.push_back(getAttribute(a->first) + expGot / expNeed);
+ // Only use the first 1000 skill levels in calulation
+ if (a->first < 1000)
+ {
+ float expGot = getExpGot(a->first);
+ float expNeed = getExpNeeded(a->first);
+ levels.push_back(getAttribute(a->first) + expGot / expNeed);
+ }
}
levels.sort();