version 1.78 | | version 1.79 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.78 2002/11/26 08:48:20 garbled Exp $"; | | * "$Id: attack.c,v 1.79 2002/12/25 06:45:46 garbled Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
} | | } |
| | |
/* Missile hit victim */ | | /* Missile hit victim */ |
if (hit_something) | | /* if the speed is > 10, then this is a fast moving arrow, we go straight |
| | through the target */ |
| | if (hit_something && op->speed <= 10.0) |
{ | | { |
/* Stop arrow */ | | /* Stop arrow */ |
if (container == NULL) { | | if (container == NULL) { |
| | |
return NULL; | | return NULL; |
} | | } |
| | |
| | if (hit_something && op->speed >= 10.0) |
| | op->speed -= 1.0; |
| | |
/* Missile missed victim - reassemble missile */ | | /* Missile missed victim - reassemble missile */ |
if (container) { | | if (container) { |
remove_ob (hitter); | | remove_ob (hitter); |