1
0

Revert "Fixed a food saturation issue"

This reverts commit 67308e4337.
This commit is contained in:
Tiger Wang 2014-05-29 12:12:10 +01:00
parent 365c6f50bd
commit bacc873a17

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