summaryrefslogtreecommitdiffstats
path: root/source/Entities
diff options
context:
space:
mode:
authorDaniel O'Brien <marmot.daniel@gmail.com>2013-11-14 06:48:14 +0100
committerDaniel O'Brien <marmot.daniel@gmail.com>2013-11-14 06:48:14 +0100
commitdbc2694b0f302cc329624e0b0b890737fe3004e5 (patch)
treee724e9b2caa4c6d861e8890a8cdfb7d7a75bfb52 /source/Entities
parentadded tolua export snippet for VC (diff)
downloadcuberite-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
Diffstat (limited to 'source/Entities')
-rw-r--r--source/Entities/Player.cpp2
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);
}