version 1.51 | | version 1.52 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.51 2001/11/11 12:37:10 tchize Exp $"; | | * "$Id: apply.c,v 1.52 2001/11/26 17:52:26 michtoen Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
goto leave; | | goto leave; |
/* fallthrough */ | | /* fallthrough */ |
case ARROW: | | case ARROW: |
if (QUERY_FLAG (victim, FLAG_ALIVE) && trap->speed) | | |
| | /* bad bug: monster throw a object, make a step forwards, step on object , |
| | * trigger this here and get hit by own missile - and will be own enemy. |
| | * Victim then is his own enemy and will start to kill herself (this is |
| | * removed) but we have not synced victim and his missile. To avoid senseless |
| | * action, we avoid hits here */ |
| | if ((QUERY_FLAG (victim, FLAG_ALIVE) && trap->speed) && trap->owner != victim) |
hit_with_arrow (trap, victim); | | hit_with_arrow (trap, victim); |
goto leave; | | goto leave; |
| | |