Difference for server/c_wiz.c from version 1.36 to 1.37


version 1.36 version 1.37
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_wiz_c =   * static char *rcsid_c_wiz_c =
  *   "$Id: c_wiz.c,v 1.36 2003/09/13 05:02:09 mwedel Exp $";   *   "$Id: c_wiz.c,v 1.37 2003/09/23 05:40:39 mwedel Exp $";
  */   */
   
 /*  /*
Line 206
 
Line 206
   struct pl *pl;    struct pl *pl;
   
   for(pl=first_player;pl!=NULL;pl=pl->next)     for(pl=first_player;pl!=NULL;pl=pl->next)
     if((params==NULL || !strcmp(pl->ob->name,params)) && pl->ob!=op)   if((params==NULL || !strcmp(pl->ob->name,params)) && pl->ob!=op) {
       {  
  object *op;   object *op;
        int removed=0;
   
  op=pl->ob;   op=pl->ob;
        if (!QUERY_FLAG(op, FLAG_REMOVED)) {
  remove_ob(op);   remove_ob(op);
    removed=1;
        }
  op->direction=0;   op->direction=0;
  new_draw_info_format(NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op,   new_draw_info_format(NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op,
       "%s is kicked out of the game.",op->name);        "%s is kicked out of the game.",op->name);
  strcpy(op->contr->killer,"left");   strcpy(op->contr->killer,"left");
  check_score(op); /* Always check score */   check_score(op); /* Always check score */
        if (!removed) {
  (void)save_player(op,0);   (void)save_player(op,0);
  op->map->players--;   op->map->players--;
        }
 #if MAP_MAXTIMEOUT  #if MAP_MAXTIMEOUT
  op->map->timeout = MAP_TIMEOUT(op->map);   op->map->timeout = MAP_TIMEOUT(op->map);
 #endif  #endif


Legend:
line(s) removed in v.1.36 
line(s) changed
 line(s) added in v.1.37

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