diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-10-15 20:18:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 20:18:32 +0200 |
commit | c07ea7b9ab8acd9b7d8d4b18425f7927881d4ee5 (patch) | |
tree | ad6a2243fe7eec7ddd29c18a4e0e8bc2227e3ce8 /src/Entities/Player.cpp | |
parent | Fix Android builds (#4998) (diff) | |
download | cuberite-c07ea7b9ab8acd9b7d8d4b18425f7927881d4ee5.tar cuberite-c07ea7b9ab8acd9b7d8d4b18425f7927881d4ee5.tar.gz cuberite-c07ea7b9ab8acd9b7d8d4b18425f7927881d4ee5.tar.bz2 cuberite-c07ea7b9ab8acd9b7d8d4b18425f7927881d4ee5.tar.lz cuberite-c07ea7b9ab8acd9b7d8d4b18425f7927881d4ee5.tar.xz cuberite-c07ea7b9ab8acd9b7d8d4b18425f7927881d4ee5.tar.zst cuberite-c07ea7b9ab8acd9b7d8d4b18425f7927881d4ee5.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 6d92eff6a..888792773 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -527,7 +527,7 @@ int cPlayer::XpForLevel(int a_Level) -int cPlayer::GetXpLevel() +int cPlayer::GetXpLevel() const { return CalcLevelFromXp(m_CurrentXp); } @@ -536,7 +536,7 @@ int cPlayer::GetXpLevel() -float cPlayer::GetXpPercentage() +float cPlayer::GetXpPercentage() const { int currentLevel = CalcLevelFromXp(m_CurrentXp); int currentLevel_XpBase = XpForLevel(currentLevel); |