added const correctness on some functions in cPlayer (#4999)
Co-authored-by: 12xx12 <12xx12100@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user