version 1.87 | | version 1.88 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.87 2003/03/20 07:21:05 mwedel Exp $"; | | * "$Id: attack.c,v 1.88 2003/06/16 05:15:35 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
/* aimed missiles use the owning object's sight */ | | /* aimed missiles use the owning object's sight */ |
if(is_aimed_missile(hitter)) { | | if(is_aimed_missile(hitter)) { |
if ((attacker = get_owner(hitter))==NULL) attacker = hitter; | | if ((attacker = get_owner(hitter))==NULL) attacker = hitter; |
| | /* A player who saves but hasn't quit still could have objects |
| | * owned by him - need to handle that case to avoid crashes. |
| | */ |
| | if (QUERY_FLAG(attacker, FLAG_REMOVED)) attacker = hitter; |
} | | } |
else if(!QUERY_FLAG(hitter,FLAG_ALIVE)) | | else if(!QUERY_FLAG(hitter,FLAG_ALIVE)) |
return 0; | | return 0; |