Date: Thursday October 19, 2000 @ 23:34 Author: peterm Update of /home/cvs/CVS/crossfire/server In directory boltzmann.eecs.berkeley.edu:/tmp/cvs-serv1612 Modified Files: spell_util.c Log Message: Fixed some bugs with summoned creatures speed. **************************************** Index: crossfire/server/spell_util.c diff -u crossfire/server/spell_util.c:1.18 crossfire/server/spell_util.c:1.19 --- crossfire/server/spell_util.c:1.18 Mon Oct 16 12:19:31 2000 +++ crossfire/server/spell_util.c Thu Oct 19 23:34:02 2000 @@ -1,6 +1,6 @@ /* * static char *rcsid_spell_util_c = - * "$Id: spell_util.c,v 1.18 2000/10/16 19:19:31 peterm Exp $"; + * "$Id: spell_util.c,v 1.19 2000/10/20 06:34:02 peterm Exp $"; */ /* @@ -851,9 +851,12 @@ tmp->stats.dam= SP_PARAMETERS[spellnum].bdam + 2* SP_level_dam_adjust(op,caster,spellnum); tmp->stats.wc -= SP_level_dam_adjust(op,caster,spellnum); - tmp->speed += .05 * SP_level_dam_adjust(op,caster,spellnum); - /* limit the speed to 1 */ - tmp->speed = MIN(tmp->speed,1); + if(tmp->speed < 0) tmp->speed = -tmp->speed; + tmp->speed += .02 * SP_level_dam_adjust(op,caster,spellnum); + /* limit the speed to 0.3 for non-players, 1 for players. */ + if(op->type!=PLAYER) + tmp->speed = MIN(tmp->speed,0.3); + tmp->speed = MIN(tmp->speed, 1.0); if(tmp->stats.dam<0) tmp->stats.dam=127; /*seen this go negative!*/ /* make experience increase in proportion to the strength of the summoned creature. */ tmp->stats.exp *= SP_level_spellpoint_cost(op,caster,spellnum)/spells[spellnum].sp;