--- deliantra/server/server/spell_attack.C 2009/01/01 20:49:48 1.80 +++ deliantra/server/server/spell_attack.C 2009/03/02 11:45:19 1.83 @@ -830,14 +830,14 @@ for (i = range_min; i <= range_max; i++) { - sint16 x, y, d; + sint16 x, y; /* We can't use absdir here, because it never returns * 0. If this is a rune, we want to hit the person on top * of the trap (d==0). If it is not a rune, then we don't want * to hit that person. */ - d = (dir + i) % 9; + int d = dir ? absdir (dir + i) : i; /* If it's not a rune, we don't want to blast the caster. * In that case, we have to see - if dir is specified, @@ -1258,11 +1258,11 @@ tmp->speed = 0.01; tmp->stats.food = time; SET_FLAG (tmp, FLAG_IS_USED_UP); - tmp->glow_radius = min (MAX_LIGHT_RADIUS, radius); + tmp->set_glow_radius (min (MAX_LIGHT_RADIUS, radius)); tmp = insert_ob_in_ob (tmp, op); if (tmp->glow_radius > op->glow_radius) - op->glow_radius = tmp->glow_radius; + op->set_glow_radius (tmp->glow_radius); return 1; } @@ -1909,7 +1909,8 @@ tmp->stats.food = spell->duration + SP_level_duration_adjust (caster, spell); if (tmp->glow_radius) - tmp->glow_radius = min (MAX_LIGHT_RADIUS, spell->range + SP_level_range_adjust (caster, spell)); + tmp->set_glow_radius ( + min (MAX_LIGHT_RADIUS, spell->range + SP_level_range_adjust (caster, spell))); if (dir) m->insert (tmp, x, y, op);