ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/living.C
(Generate patch)

Comparing deliantra/server/common/living.C (file contents):
Revision 1.70 by root, Tue Jul 10 05:51:37 2007 UTC vs.
Revision 1.72 by root, Sun Jul 22 14:17:56 2007 UTC

889 tmp->type == AMULET || tmp->type == GIRDLE || 889 tmp->type == AMULET || tmp->type == GIRDLE ||
890 tmp->type == BRACERS || tmp->type == CLOAK || 890 tmp->type == BRACERS || tmp->type == CLOAK ||
891 tmp->type == DISEASE || tmp->type == FORCE || 891 tmp->type == DISEASE || tmp->type == FORCE ||
892 tmp->type == SKILL) 892 tmp->type == SKILL)
893 { 893 {
894 contr->digestion += tmp->stats.food; 894 contr->digestion = clamp (int (contr->digestion) + tmp->stats.food, MIN_DIGESTION, MAX_DIGESTION);
895 contr->gen_hp += tmp->stats.hp; 895 contr->gen_hp += tmp->stats.hp;
896 contr->gen_sp += tmp->stats.sp; 896 contr->gen_sp += tmp->stats.sp;
897 contr->gen_grace += tmp->stats.grace; 897 contr->gen_grace += tmp->stats.grace;
898 contr->gen_sp_armour += tmp->gen_sp_armour; 898 contr->gen_sp_armour += tmp->gen_sp_armour;
899 } 899 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines