version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.2 1999/06/13 05:01:06 cvs Exp $"; | | * "$Id: attack.c,v 1.3 1999/07/10 23:36:00 cvs Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if(op->nrof>1) | | if(op->nrof>1) |
decrease_ob_nr(op,RANDOM()%op->nrof); | | decrease_ob_nr(op,RANDOM()%op->nrof); |
else { | | else { |
| | if (op->env) { |
| | object *tmp= is_player_inv(op->env); |
| | |
| | if (tmp) { |
| | esrv_del_item(tmp->contr, op->count); |
| | esrv_update_item(UPD_WEIGHT, tmp, tmp); |
| | } |
| | } |
remove_ob(op); | | remove_ob(op); |
free_object(op); | | free_object(op); |
} | | } |