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.46 by root, Tue May 1 05:48:19 2007 UTC vs.
Revision 1.47 by root, Mon May 7 03:05:57 2007 UTC

852 contr->gen_grace = 0; 852 contr->gen_grace = 0;
853 contr->gen_sp_armour = 10; 853 contr->gen_sp_armour = 10;
854 contr->item_power = 0; 854 contr->item_power = 0;
855 } 855 }
856 856
857 memcpy (body_used, body_info, sizeof (body_info)); 857 for (int i = NUM_BODY_LOCATIONS; i--; )
858 slot[i].used = slot[i].info;
858 859
859 slaying = 0; 860 slaying = 0;
860 861
861 if (!QUERY_FLAG (this, FLAG_WIZ)) 862 if (!QUERY_FLAG (this, FLAG_WIZ))
862 { 863 {
1008 } 1009 }
1009 1010
1010 /* Update slots used for items */ 1011 /* Update slots used for items */
1011 if (QUERY_FLAG (tmp, FLAG_APPLIED)) 1012 if (QUERY_FLAG (tmp, FLAG_APPLIED))
1012 for (i = 0; i < NUM_BODY_LOCATIONS; i++) 1013 for (i = 0; i < NUM_BODY_LOCATIONS; i++)
1013 body_used[i] += tmp->body_info[i]; 1014 slot[i].used += tmp->slot[i].info;
1014 1015
1015 if (tmp->type == SYMPTOM) 1016 if (tmp->type == SYMPTOM)
1016 { 1017 {
1017 speed_reduce_from_disease = tmp->last_sp / 100.f; 1018 speed_reduce_from_disease = tmp->last_sp / 100.f;
1018 1019

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines