1
0

added const correctness on some functions in cPlayer (#4999)

Co-authored-by: 12xx12 <12xx12100@gmail.com>
This commit is contained in:
12xx12
2020-10-15 20:18:32 +02:00
committed by GitHub
parent a145980795
commit c07ea7b9ab
2 changed files with 7 additions and 4 deletions

View File

@@ -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);