version 1.7 | | version 1.8 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.7 2000/04/05 04:40:52 cvs Exp $"; | | * "$Id: attack.c,v 1.8 2000/05/21 21:41:45 jec Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if(op->head!=NULL) | | if(op->head!=NULL) |
op=op->head; | | op=op->head; |
if(op->name==NULL) { | | if(op->name==NULL) { |
if(settings.debug) { | | if(settings.debug >= llevDebug) { |
dump_object(op); | | dump_object(op); |
LOG(llevDebug,"Object without name tried to attack.\n%s\n",errmsg); | | LOG(llevDebug,"Object without name tried to attack.\n%s\n",errmsg); |
} | | } |
| | |
hitter=hitter->head; | | hitter=hitter->head; |
| | |
if (hitter->name==NULL) { | | if (hitter->name==NULL) { |
if(settings.debug) { | | if(settings.debug >= llevDebug) { |
dump_object(hitter); | | dump_object(hitter); |
LOG(llevDebug,"Object without name tried to attack.\n%s\n",errmsg); | | LOG(llevDebug,"Object without name tried to attack.\n%s\n",errmsg); |
} | | } |
| | |
| | |
/* If its already dead, or we're the wizard, don't attack it - no point */ | | /* If its already dead, or we're the wizard, don't attack it - no point */ |
if(hitter->name==NULL) { | | if(hitter->name==NULL) { |
if (settings.debug) | | |
LOG(llevDebug, "hit_player: hitter has no name\n"); | | LOG(llevDebug, "hit_player: hitter has no name\n"); |
return 0; | | return 0; |
} | | } |