Difference for server/hiscore.c from version 1.8 to 1.9


version 1.8 version 1.9
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_hiscore_c =   * static char *rcsid_hiscore_c =
  *   "$Id: hiscore.c,v 1.8 2002/11/13 05:24:53 garbled Exp $";   *   "$Id: hiscore.c,v 1.9 2003/03/08 05:35:32 mwedel Exp $";
  */   */
   
 /*  /*
Line 39
 
Line 39
   char name[BIG_NAME];      /* name  */    char name[BIG_NAME];      /* name  */
   char title[BIG_NAME];     /* Title */    char title[BIG_NAME];     /* Title */
   char killer[BIG_NAME];    /* name (+ title) or "quit" */    char killer[BIG_NAME];    /* name (+ title) or "quit" */
   long exp;                 /* Experience */    sint64 exp;               /* Experience */
   char maplevel[BIG_NAME];  /* Killed on what level */    char maplevel[BIG_NAME];  /* Killed on what level */
   int maxhp,maxsp,maxgrace; /* Max hp, sp, grace when killed */    int maxhp,maxsp,maxgrace; /* Max hp, sp, grace when killed */
   int position;             /* Position in the highscore list */    int position;             /* Position in the highscore list */
Line 99
 
Line 99
   
 static char *put_score(score *sc) {  static char *put_score(score *sc) {
   static char buf[MAX_BUF];    static char buf[MAX_BUF];
   sprintf(buf,"%s:%s:%ld:%s:%s:%d:%d:%d",sc->name,sc->title,sc->exp,sc->killer,sc->maplevel,    sprintf(buf,"%s:%s:%lld:%s:%s:%d:%d:%d",sc->name,sc->title,sc->exp,sc->killer,sc->maplevel,
           sc->maxhp,sc->maxsp,sc->maxgrace);            sc->maxhp,sc->maxsp,sc->maxgrace);
   return buf;    return buf;
 }  }
Line 128
 
Line 128
   
   if ((cp = spool(NULL, "score")) == NULL)    if ((cp = spool(NULL, "score")) == NULL)
     return NULL;      return NULL;
   sscanf(cp,"%ld",&sc.exp);    sscanf(cp,"%lld",&sc.exp);
   
   if ((cp = spool(NULL, "killer")) == NULL)    if ((cp = spool(NULL, "killer")) == NULL)
     return NULL;      return NULL;
Line 158
 
Line 158
     static char retbuf[MAX_BUF];      static char retbuf[MAX_BUF];
   
     if(!strncmp(sc->killer,"quit",MAX_NAME))      if(!strncmp(sc->killer,"quit",MAX_NAME))
  sprintf(retbuf,"%3d %10ld %s the %s quit the game on map %s [%d][%d][%d].",   sprintf(retbuf,"%3d %10lld %s the %s quit the game on map %s [%d][%d][%d].",
             sc->position,sc->exp,sc->name,sc->title,sc->maplevel,sc->maxhp,sc->maxsp,              sc->position,sc->exp,sc->name,sc->title,sc->maplevel,sc->maxhp,sc->maxsp,
  sc->maxgrace);   sc->maxgrace);
     else if(!strncmp(sc->killer,"left",MAX_NAME))      else if(!strncmp(sc->killer,"left",MAX_NAME))
  sprintf(retbuf,"%3d %10ld %s the %s left the game on map %s [%d][%d][%d].",   sprintf(retbuf,"%3d %10lld %s the %s left the game on map %s [%d][%d][%d].",
             sc->position,sc->exp,sc->name,sc->title,sc->maplevel,sc->maxhp,sc->maxsp,              sc->position,sc->exp,sc->name,sc->title,sc->maplevel,sc->maxhp,sc->maxsp,
  sc->maxgrace);   sc->maxgrace);
     else      else
  sprintf(retbuf,"%3d %10ld %s the %s was killed by %s on map %s [%d][%d][%d].",   sprintf(retbuf,"%3d %10lld %s the %s was killed by %s on map %s [%d][%d][%d].",
             sc->position,sc->exp,sc->name,sc->title,sc->killer,sc->maplevel,              sc->position,sc->exp,sc->name,sc->title,sc->killer,sc->maplevel,
             sc->maxhp,sc->maxsp,sc->maxgrace);              sc->maxhp,sc->maxsp,sc->maxgrace);
     return retbuf;      return retbuf;


Legend:
line(s) removed in v.1.8 
line(s) changed
 line(s) added in v.1.9

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