Difference for server/player.c from version 1.102 to 1.103


version 1.102 version 1.103
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.102 2002/11/13 05:24:54 garbled Exp $";   *   "$Id: player.c,v 1.103 2002/11/13 05:49:04 garbled Exp $";
  */   */
   
 /*  /*
Line 52
 
Line 52
 }  }
   
 void display_motd(object *op) {  void display_motd(object *op) {
 #ifdef MOTD  
   char buf[MAX_BUF];    char buf[MAX_BUF];
   FILE *fp;    FILE *fp;
   int comp;    int comp;
   
   sprintf(buf,"%s/%s",settings.confdir,MOTD);      sprintf(buf, "%s/%s", settings.confdir, settings.motd);
   if((fp=open_and_uncompress(buf,0,&comp))==NULL) {    if((fp=open_and_uncompress(buf,0,&comp))==NULL) {
     return;      return;
   }    }
Line 72
 
Line 71
   }    }
   close_and_delete(fp, comp);    close_and_delete(fp, comp);
   new_draw_info(NDI_UNIQUE, 0,op," ");    new_draw_info(NDI_UNIQUE, 0,op," ");
 #endif  
 }  }
   
 int playername_ok(char *cp) {  int playername_ok(char *cp) {
Line 236
 
Line 234
   
     CLEAR_FLAG(p->ob, FLAG_FRIENDLY);      CLEAR_FLAG(p->ob, FLAG_FRIENDLY);
     add_friendly_object(p->ob);      add_friendly_object(p->ob);
 #ifdef MOTD  
     display_motd(p->ob);      display_motd(p->ob);
 #endif  
     get_name(p->ob);      get_name(p->ob);
     return 0;      return 0;
 }  }


Legend:
line(s) removed in v.1.102 
line(s) changed
 line(s) added in v.1.103

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