--- deliantra/server/server/spell_attack.C 2008/05/17 01:05:57 1.56 +++ deliantra/server/server/spell_attack.C 2008/05/17 14:11:13 1.57 @@ -38,7 +38,6 @@ * but moved here so it could be applied to bolts too * op is the spell object. */ - void check_spell_knockback (object *op) { @@ -108,10 +107,9 @@ * ***************************************************************************/ -/* Causes op to fork. op is the original bolt, tmp +/* Causes op to fork. op is the original bolt, tmp * is the first piece of the fork. */ - void forklightning (object *op, object *tmp) { @@ -1761,7 +1759,7 @@ int basedir = op->direction; if (!basedir) /* spray in all directions! 8) */ - basedir = 1 + (op->facing += op->state) % 8; + basedir = (op->facing += op->state) % 8 + 1; #if 0 // this is bogus: it causes wrong places to be checked below @@ -1831,7 +1829,7 @@ if (op->spell->subtype == SP_BULLET) fire_bullet (owner, op, basedir, op->spell); else if (op->spell->subtype == SP_MAGIC_MISSILE) - fire_arch_from_position (owner, op, op->x, op->y, basedir, op->spell); + fire_arch_from_position (owner, op, owner->x, owner->y, basedir, op->spell); } } @@ -1868,7 +1866,7 @@ tmp->direction = dir; tmp->invisible = 1; - tmp->facing = rndm (8); // initial firing direction + tmp->facing = rndm (1, 8); // initial firing direction tmp->state = rndm (4) * 2 + 1; // direction increment op->insert (tmp);