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

Comparing deliantra/server/server/spell_effect.C (file contents):
Revision 1.105 by root, Thu Sep 17 00:07:04 2009 UTC vs.
Revision 1.106 by root, Thu Sep 17 01:59:48 2009 UTC

1419 * items. 1419 * items.
1420 */ 1420 */
1421int 1421int
1422remove_curse (object *op, object *caster, object *spell) 1422remove_curse (object *op, object *caster, object *spell)
1423{ 1423{
1424 object *tmp;
1425 int success = 0, was_one = 0; 1424 int success = 0, was_one = 0;
1426 1425
1427 for (tmp = op->inv; tmp; tmp = tmp->below) 1426 for (object *tmp = op->inv; tmp; tmp = tmp->below)
1428 if (QUERY_FLAG (tmp, FLAG_APPLIED) && 1427 if (QUERY_FLAG (tmp, FLAG_APPLIED) &&
1429 ((QUERY_FLAG (tmp, FLAG_CURSED) && QUERY_FLAG (spell, FLAG_CURSED)) || 1428 ((QUERY_FLAG (tmp, FLAG_CURSED) && QUERY_FLAG (spell, FLAG_CURSED)) ||
1430 (QUERY_FLAG (tmp, FLAG_DAMNED) && QUERY_FLAG (spell, FLAG_DAMNED)))) 1429 (QUERY_FLAG (tmp, FLAG_DAMNED) && QUERY_FLAG (spell, FLAG_DAMNED))))
1431 { 1430 {
1432 was_one++; 1431 was_one++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines