Difference for server/c_misc.c from version 1.23 to 1.24


version 1.23 version 1.24
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_misc_c =   * static char *rcsid_c_misc_c =
  *   "$Id: c_misc.c,v 1.23 2002/11/12 23:09:11 garbled Exp $";   *   "$Id: c_misc.c,v 1.24 2002/11/13 05:24:53 garbled Exp $";
  */   */
   
 /*  /*
Line 1012
 
Line 1012
     return 1;      return 1;
   }    }
   
 #ifdef EXPLORE_MODE  
 /*  /*
  * don't allow people to exit explore mode.  It otherwise becomes   * don't allow people to exit explore mode.  It otherwise becomes
  * really easy to abuse this.   * really easy to abuse this.
  */   */
 int command_explore (object *op, char *params)  int command_explore (object *op, char *params)
 {  {
       if (settings.explore_mode == FALSE)
    return 1;
   /*    /*
    * I guess this is the best way to see if we are solo or not.  Actually,     * I guess this is the best way to see if we are solo or not.  Actually,
    * are there any cases when first_player->next==NULL and we are not solo?     * are there any cases when first_player->next==NULL and we are not solo?
    */     */
       if ((first_player!=op->contr) || (first_player->next!=NULL)) {        if ((first_player!=op->contr) || (first_player->next!=NULL)) {
    new_draw_info(NDI_UNIQUE, 0,op,"You can not enter explore mode if you are in a party");     new_draw_info(NDI_UNIQUE, 0,op,"You can not enter explore mode if you are in a party");
       }      } else if (op->contr->explore)
       else if (op->contr->explore)  
               new_draw_info(NDI_UNIQUE, 0,op, "There is no return from explore mode");                new_draw_info(NDI_UNIQUE, 0,op, "There is no return from explore mode");
       else {        else {
  op->contr->explore=1;   op->contr->explore=1;
Line 1034
 
Line 1034
       }        }
       return 1;        return 1;
     }      }
 #endif  
   
 int command_sound (object *op, char *params)  int command_sound (object *op, char *params)
 {  {
Line 1103
 
Line 1102
   
   
 int explore_mode() {  int explore_mode() {
 #ifdef EXPLORE_MODE  
   player *pl;    player *pl;
   
       if (settings.explore_mode == TRUE) {
   for (pl = first_player; pl != (player *) NULL; pl = pl->next)    for (pl = first_player; pl != (player *) NULL; pl = pl->next)
     if (pl->explore)      if (pl->explore)
       return 1;        return 1;
 #endif      }
   return 0;    return 0;
 }  }
   


Legend:
line(s) removed in v.1.23 
line(s) changed
 line(s) added in v.1.24

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