1
0

Fixed a food saturation issue

This commit is contained in:
Tiger Wang 2014-05-25 13:46:50 +01:00
parent ee929793f0
commit 67308e4337

View File

@ -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 = std::min(m_FoodSaturationLevel + a_Saturation, (double)m_FoodLevel);
m_FoodSaturationLevel = m_FoodSaturationLevel + a_Saturation;
SendHealth();
return true;