diff options
author | tycho <work.tycho@gmail.com> | 2015-09-25 16:49:22 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-12-18 19:14:34 +0100 |
commit | 26caea80d35d4ff2ac3879d5ae6ab49f2f876385 (patch) | |
tree | dbbeff77f1653217bab4f06ae3f2763bef0bd21b /src/Entities/Player.cpp | |
parent | Refactored some protocol logging (diff) | |
download | cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.gz cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.bz2 cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.lz cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.xz cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.tar.zst cuberite-26caea80d35d4ff2ac3879d5ae6ab49f2f876385.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 33ded6ab9..1c2432fc5 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -328,7 +328,7 @@ int cPlayer::XpForLevel(int a_Level) -int cPlayer::GetXpLevel() +int cPlayer::GetXpLevel() const { return CalcLevelFromXp(m_CurrentXp); } @@ -337,7 +337,7 @@ int cPlayer::GetXpLevel() -float cPlayer::GetXpPercentage() +float cPlayer::GetXpPercentage() const { int currentLevel = CalcLevelFromXp(m_CurrentXp); int currentLevel_XpBase = XpForLevel(currentLevel); |