version 1.43 | | version 1.44 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.43 2002/11/26 08:48:20 garbled Exp $"; | | * "$Id: time.c,v 1.44 2002/12/03 07:40:18 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if(!op->stats.maxsp&&op->attacktype) op->stats.maxsp=2.0; | | if(!op->stats.maxsp&&op->attacktype) op->stats.maxsp=2.0; |
| | |
if(op->attacktype) /* flag to paralyze the player */ | | if(op->attacktype) { /* flag to paralyze the player */ |
| | |
victim->speed_left= -FABS(op->stats.maxsp*victim->speed/op->speed); | | victim->speed_left= -FABS(op->stats.maxsp*victim->speed/op->speed); |
| | /* Not sure why, but for some chars on metalforge, they |
| | * would sometimes get -inf speed_left, and from the |
| | * description, it could only happen here, so just put |
| | * a lower sanity limit. My only guess is that the |
| | * mover has 0 speed. |
| | */ |
| | if (victim->speed_left < -5.0) victim->speed_left=-5.0; |
| | } |
} | | } |
} | | } |
} | | } |