1
0

Player.cpp: change unnamed enum to constant integers

This commit is contained in:
archshift
2014-08-02 22:42:53 -07:00
parent 0953bf403b
commit dba6723611
2 changed files with 8 additions and 7 deletions

View File

@@ -509,7 +509,7 @@ void cPlayer::Heal(int a_Health)
void cPlayer::SetFoodLevel(int a_FoodLevel)
{
int FoodLevel = std::max(0, std::min(a_FoodLevel, (int)MAX_FOOD_LEVEL));
int FoodLevel = Clamp(a_FoodLevel, 0, MAX_FOOD_LEVEL);
if (cRoot::Get()->GetPluginManager()->CallHookPlayerFoodLevelChange(*this, FoodLevel))
{