version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_hiscore_c = | | * static char *rcsid_hiscore_c = |
* "$Id: hiscore.c,v 1.9 2003/03/08 05:35:32 mwedel Exp $"; | | * "$Id: hiscore.c,v 1.10 2004/03/26 21:59:28 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
static char *put_score(score *sc) { | | static char *put_score(score *sc) { |
static char buf[MAX_BUF]; | | static char buf[MAX_BUF]; |
| | #ifndef WIN32 |
sprintf(buf,"%s:%s:%lld:%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); |
| | #else |
| | sprintf(buf,"%s:%s:%I64d:%s:%s:%d:%d:%d",sc->name,sc->title,sc->exp,sc->killer,sc->maplevel, |
| | sc->maxhp,sc->maxsp,sc->maxgrace); |
| | #endif |
return buf; | | return buf; |
} | | } |
| | |
| | |
| | |
if ((cp = spool(NULL, "score")) == NULL) | | if ((cp = spool(NULL, "score")) == NULL) |
return NULL; | | return NULL; |
| | #ifndef WIN32 |
sscanf(cp,"%lld",&sc.exp); | | sscanf(cp,"%lld",&sc.exp); |
| | #else |
| | sscanf(cp,"%I64d",&sc.exp); |
| | #endif |
| | |
if ((cp = spool(NULL, "killer")) == NULL) | | if ((cp = spool(NULL, "killer")) == NULL) |
return NULL; | | return NULL; |