--- deliantra/server/common/living.C 2007/07/21 14:37:25 1.71 +++ deliantra/server/common/living.C 2007/07/22 14:17:56 1.72 @@ -810,8 +810,6 @@ stats.luck = arch->stats.luck; speed = arch->speed; - sint16 digestion = 0; // a local var to add digestion - /* OK - we've reset most all the objects attributes to sane values. * now go through and make adjustments for what the player has equipped. */ @@ -893,7 +891,7 @@ tmp->type == DISEASE || tmp->type == FORCE || tmp->type == SKILL) { - digestion += tmp->stats.food; + contr->digestion = clamp (int (contr->digestion) + tmp->stats.food, MIN_DIGESTION, MAX_DIGESTION); contr->gen_hp += tmp->stats.hp; contr->gen_sp += tmp->stats.sp; contr->gen_grace += tmp->stats.grace; @@ -1137,9 +1135,6 @@ } /* item is equipped */ } /* for loop of items */ - // now clamp digestion to our limits - contr->digestion = clamp (digestion, MIN_DIGESTION, MAX_DIGESTION); - /* We've gone through all the objects the player has equipped. For many things, we * have generated intermediate values which we now need to assign. */