removed magic number

master
Daniel O'Brien 2013-11-16 22:46:27 +11:00
parent d2d8b1d073
commit c7f38761ed
1 changed files with 2 additions and 2 deletions

View File

@ -370,9 +370,9 @@ short cPlayer::DeltaExperience(short a_Xp_delta)
m_CurrentXp += a_Xp_delta;
// Make sure they didn't subtract too much
if(m_CurrentXp < 0)
if(m_CurrentXp < MIN_EXPERIENCE)
{
m_CurrentXp = 0;
m_CurrentXp = MIN_EXPERIENCE;
}
// Update total for score calculation