ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/hiscore.C
(Generate patch)

Comparing deliantra/server/server/hiscore.C (file contents):
Revision 1.10 by root, Sun Oct 1 20:14:47 2006 UTC vs.
Revision 1.11 by pippijn, Mon Dec 11 21:06:59 2006 UTC

102static char * 102static char *
103put_score (score *sc) 103put_score (score *sc)
104{ 104{
105 static char buf[MAX_BUF]; 105 static char buf[MAX_BUF];
106 106
107 sprintf (buf, "%s:%s:%lld:%s:%s:%d:%d:%d", sc->name, sc->title, (long long) sc->exp, sc->killer, sc->maplevel, 107 sprintf (buf, "%s:%s:%" I64_PFd ":%s:%s:%d:%d:%d", sc->name, sc->title, (long long) sc->exp, sc->killer, sc->maplevel,
108 sc->maxhp, sc->maxsp, sc->maxgrace); 108 sc->maxhp, sc->maxsp, sc->maxgrace);
109 return buf; 109 return buf;
110} 110}
111 111
112/* 112/*
135 135
136 if ((cp = spool (0, "score")) == NULL) 136 if ((cp = spool (0, "score")) == NULL)
137 return 0; 137 return 0;
138 138
139 long long exp; 139 long long exp;
140 sscanf (cp, "%lld", &exp); 140 sscanf (cp, "%" I64_PFd, &exp);
141 sc.exp = exp; 141 sc.exp = exp;
142 142
143 if ((cp = spool (0, "killer")) == NULL) 143 if ((cp = spool (0, "killer")) == NULL)
144 return 0; 144 return 0;
145 145

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines