diff options
author | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-14 06:48:14 +0100 |
---|---|---|
committer | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-14 06:48:14 +0100 |
commit | dbc2694b0f302cc329624e0b0b890737fe3004e5 (patch) | |
tree | e724e9b2caa4c6d861e8890a8cdfb7d7a75bfb52 | |
parent | added tolua export snippet for VC (diff) | |
download | cuberite-dbc2694b0f302cc329624e0b0b890737fe3004e5.tar cuberite-dbc2694b0f302cc329624e0b0b890737fe3004e5.tar.gz cuberite-dbc2694b0f302cc329624e0b0b890737fe3004e5.tar.bz2 cuberite-dbc2694b0f302cc329624e0b0b890737fe3004e5.tar.lz cuberite-dbc2694b0f302cc329624e0b0b890737fe3004e5.tar.xz cuberite-dbc2694b0f302cc329624e0b0b890737fe3004e5.tar.zst cuberite-dbc2694b0f302cc329624e0b0b890737fe3004e5.zip |
-rw-r--r-- | source/Entities/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Entities/Player.cpp b/source/Entities/Player.cpp index fcb6d8d71..098417dc5 100644 --- a/source/Entities/Player.cpp +++ b/source/Entities/Player.cpp @@ -319,7 +319,7 @@ float cPlayer::XpGetPercentage() { int currentLevel = CalcLevelFromXp(m_XpTotal); - return (float)m_XpTotal / (float)XpAtLevel(1+currentLevel); + return (float)m_XpTotal / (float)XpForLevel(1+currentLevel); } |