Difference for server/c_wiz.c from version 1.26 to 1.27


version 1.26 version 1.27
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_wiz_c =   * static char *rcsid_c_wiz_c =
  *   "$Id: c_wiz.c,v 1.26 2002/10/12 05:34:29 mwedel Exp $";   *   "$Id: c_wiz.c,v 1.27 2002/11/13 04:57:32 garbled Exp $";
  */   */
   
 /*  /*
Line 443
 
Line 443
  if (set_nrof)   if (set_nrof)
      tmp->nrof = nrof;       tmp->nrof = nrof;
  tmp->map=op->map;   tmp->map=op->map;
 #ifndef REAL_WIZ   if (settings.real_wiz == FALSE)
  SET_FLAG(tmp, FLAG_WAS_WIZ);   SET_FLAG(tmp, FLAG_WAS_WIZ);
 #endif  
  if (set_magic)   if (set_magic)
      set_abs_magic(tmp, magic);       set_abs_magic(tmp, magic);
  if (art)   if (art)
Line 508
 
Line 507
  object *prev=NULL,*head=NULL;   object *prev=NULL,*head=NULL;
  for (atmp=at; atmp!=NULL; atmp=atmp->more) {   for (atmp=at; atmp!=NULL; atmp=atmp->more) {
      tmp=arch_to_object(atmp);       tmp=arch_to_object(atmp);
 #ifndef REAL_WIZ       if (settings.real_wiz == FALSE)
      SET_FLAG(tmp, FLAG_WAS_WIZ);       SET_FLAG(tmp, FLAG_WAS_WIZ);
 #endif  
      if(head==NULL)       if(head==NULL)
  head=tmp;   head=tmp;
      tmp->x=op->x+tmp->arch->clone.x;       tmp->x=op->x+tmp->arch->clone.x;
Line 666
 
Line 664
     }      }
     if((arg2=strchr(++arg,' ')))      if((arg2=strchr(++arg,' ')))
       arg2++;        arg2++;
 #ifndef REAL_WIZ      if (settings.real_wiz == FALSE)
     SET_FLAG(tmp, FLAG_WAS_WIZ); /* To avoid cheating */      SET_FLAG(tmp, FLAG_WAS_WIZ); /* To avoid cheating */
 #endif  
     if(set_variable(tmp,arg) == -1)      if(set_variable(tmp,arg) == -1)
       new_draw_info_format(NDI_UNIQUE, 0,op,"Unknown variable %s", arg);        new_draw_info_format(NDI_UNIQUE, 0,op,"Unknown variable %s", arg);
     else {      else {
Line 741
 
Line 738
     }      }
     pl->ob->stats.exp += i;      pl->ob->stats.exp += i;
     player_lvl_adj(pl->ob, NULL);      player_lvl_adj(pl->ob, NULL);
 #ifndef REAL_WIZ      if (settings.real_wiz == FALSE)
     SET_FLAG(pl->ob, FLAG_WAS_WIZ);      SET_FLAG(pl->ob, FLAG_WAS_WIZ);
 #endif  
     return 1;      return 1;
   }    }
   
Line 832
 
Line 828
     }      }
     for(pl=first_player;pl!=NULL;pl=pl->next)       for(pl=first_player;pl!=NULL;pl=pl->next)
        if(!strcmp(pl->ob->name,thing)){          if(!strcmp(pl->ob->name,thing)){
 #ifndef REAL_WIZ       if (settings.real_wiz == FALSE)
    SET_FLAG(pl->ob, FLAG_WAS_WIZ);     SET_FLAG(pl->ob, FLAG_WAS_WIZ);
 #endif  
           if(!strcmp("str",thing2))            if(!strcmp("str",thing2))
             pl->ob->stats.Str = iii,pl->orig_stats.Str = iii;              pl->ob->stats.Str = iii,pl->orig_stats.Str = iii;
           if(!strcmp("dex",thing2))               if(!strcmp("dex",thing2))   
Line 927
 
Line 922
      CLEAR_FLAG(op, FLAG_WIZ);       CLEAR_FLAG(op, FLAG_WIZ);
      CLEAR_FLAG(op, FLAG_WIZPASS);       CLEAR_FLAG(op, FLAG_WIZPASS);
      CLEAR_FLAG(op, FLAG_FLYING);       CLEAR_FLAG(op, FLAG_FLYING);
 #ifdef REAL_WIZ       if (settings.real_wiz == TRUE)
      CLEAR_FLAG(op, FLAG_WAS_WIZ);       CLEAR_FLAG(op, FLAG_WAS_WIZ);
 #endif  
     op->contr->hidden=0;      op->contr->hidden=0;
      new_draw_info(NDI_UNIQUE | NDI_ALL, 1, NULL,       new_draw_info(NDI_UNIQUE | NDI_ALL, 1, NULL,
  "The Dungeon Master is gone..");   "The Dungeon Master is gone..");


Legend:
line(s) removed in v.1.26 
line(s) changed
 line(s) added in v.1.27

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