Difference for server/attack.c from version 1.2 to 1.3


version 1.2 version 1.3
Line 1
 
Line 1
 /*  /*
  * 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
Line 124
 
Line 124
  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);
  }   }


Legend:
line(s) removed in v.1.2 
line(s) changed
 line(s) added in v.1.3

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:25