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

Comparing deliantra/server/server/spell_attack.C (file contents):
Revision 1.84 by root, Tue Sep 1 20:56:05 2009 UTC vs.
Revision 1.86 by root, Thu Sep 10 14:57:36 2009 UTC

1908 1908
1909 tmp->stats.food = spell->duration + SP_level_duration_adjust (caster, spell); 1909 tmp->stats.food = spell->duration + SP_level_duration_adjust (caster, spell);
1910 1910
1911 if (tmp->glow_radius) 1911 if (tmp->glow_radius)
1912 tmp->set_glow_radius ( 1912 tmp->set_glow_radius (
1913 min (MAX_LIGHT_RADIUS, spell->range + SP_level_range_adjust (caster, spell)) 1913 clamp (spell->range + SP_level_range_adjust (caster, spell), 1, MAX_LIGHT_RADIUS)
1914 ); 1914 );
1915 1915
1916 if (dir) 1916 if (dir)
1917 m->insert (tmp, x, y, op); 1917 m->insert (tmp, x, y, op);
1918 else 1918 else
1919 caster->outer_env ()->insert (tmp); 1919 caster->outer_env_or_self ()->insert (tmp);
1920 1920
1921 return 1; 1921 return 1;
1922} 1922}
1923 1923
1924/* cast_cause_disease: this spell looks along <dir> from the 1924/* cast_cause_disease: this spell looks along <dir> from the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines