parent
365c6f50bd
commit
bacc873a17
@ -551,7 +551,7 @@ bool cPlayer::Feed(int a_Food, double a_Saturation)
|
||||
}
|
||||
|
||||
m_FoodLevel = std::min(a_Food + m_FoodLevel, (int)MAX_FOOD_LEVEL);
|
||||
m_FoodSaturationLevel = m_FoodSaturationLevel + a_Saturation;
|
||||
m_FoodSaturationLevel = std::min(m_FoodSaturationLevel + a_Saturation, (double)m_FoodLevel);
|
||||
|
||||
SendHealth();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user