001-animal-food.diff

nimetu, 06/04/2010 11:16 pm

Download (632 Bytes)

b/code/ryzom/server/src/entities_game_service/player_manager/character.cpp Fri Jun 04 23:54:27 2010 +0300
5660 5660
			{
5661 5661
				// Consume to full satiety (last useful unit is entirely consumed)
5662 5662
				animal.Satiety = animal.MaxSatiety;
5663
				nbUnits = (sint)((caloriesNeeded / caloriesPerUnit) + 1);
5663
				nbUnits = (sint)ceil(caloriesNeeded / caloriesPerUnit);
5664 5664
			}
5665 5665
			nbItemsLeftToConsume -= nbUnits;
5666 5666