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.63 by root, Tue May 22 10:49:57 2007 UTC vs.
Revision 1.64 by root, Sat May 26 15:44:02 2007 UTC

814 /* OK - we've reset most all the objects attributes to sane values. 814 /* OK - we've reset most all the objects attributes to sane values.
815 * now go through and make adjustments for what the player has equipped. 815 * now go through and make adjustments for what the player has equipped.
816 */ 816 */
817 for (tmp = inv; tmp; tmp = tmp->below) 817 for (tmp = inv; tmp; tmp = tmp->below)
818 { 818 {
819 /* See note in map.c:update_position about making this additive
820 * since light sources are never applied, need to put check here.
821 */
822 if (tmp->glow_radius > glow_radius)
823 glow_radius = tmp->glow_radius;
824
825 /* This happens because apply_potion calls change_abil with the potion 819 /* This happens because apply_potion calls change_abil with the potion
826 * applied so we can tell the player what changed. But change_abil 820 * applied so we can tell the player what changed. But change_abil
827 * then calls this function. 821 * then calls this function.
828 */ 822 */
829 if (QUERY_FLAG (tmp, FLAG_APPLIED) && tmp->type == POTION) 823 if (QUERY_FLAG (tmp, FLAG_APPLIED) && tmp->type == POTION)
830 continue; 824 continue;
825
826 /* See note in map.c:update_position about making this additive
827 * since light sources are never applied, need to put check here.
828 */
829 if (tmp->glow_radius > glow_radius)
830 glow_radius = tmp->glow_radius;
831 831
832 /* For some things, we don't care what is equipped */ 832 /* For some things, we don't care what is equipped */
833 if (tmp->type == SKILL) 833 if (tmp->type == SKILL)
834 { 834 {
835 /* Want to take the highest skill here. */ 835 /* Want to take the highest skill here. */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines