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.24 by root, Wed Apr 30 06:40:28 2008 UTC vs.
Revision 1.25 by root, Mon May 5 22:38:48 2008 UTC

166 static char retbuf[MAX_BUF]; 166 static char retbuf[MAX_BUF];
167 167
168 if (!strncmp (sc->killer, "quit", MAX_NAME)) 168 if (!strncmp (sc->killer, "quit", MAX_NAME))
169 sprintf (retbuf, "%3d %10lld %s the %s quit the game on map %s [%d][%d][%d].", 169 sprintf (retbuf, "%3d %10lld %s the %s quit the game on map %s [%d][%d][%d].",
170 sc->position, (long long) sc->exp, sc->name, sc->title, sc->maplevel, sc->maxhp, sc->maxsp, sc->maxgrace); 170 sc->position, (long long) sc->exp, sc->name, sc->title, sc->maplevel, sc->maxhp, sc->maxsp, sc->maxgrace);
171 else if (!strncmp (sc->killer, "left", MAX_NAME)) 171 else if (!strncmp (sc->killer, "leaving", MAX_NAME))
172 sprintf (retbuf, "%3d %10lld %s the %s left the game on map %s [%d][%d][%d].", 172 sprintf (retbuf, "%3d %10lld %s the %s left the game on map %s [%d][%d][%d].",
173 sc->position, (long long) sc->exp, sc->name, sc->title, sc->maplevel, sc->maxhp, sc->maxsp, sc->maxgrace); 173 sc->position, (long long) sc->exp, sc->name, sc->title, sc->maplevel, sc->maxhp, sc->maxsp, sc->maxgrace);
174 else 174 else
175 sprintf (retbuf, "%3d %10lld %s the %s was killed by %s on map %s [%d][%d][%d].", 175 sprintf (retbuf, "%3d %10lld %s the %s was killed by %s on map %s [%d][%d][%d].",
176 sc->position, (long long) sc->exp, sc->name, sc->title, sc->killer, sc->maplevel, sc->maxhp, sc->maxsp, sc->maxgrace); 176 sc->position, (long long) sc->exp, sc->name, sc->title, sc->killer, sc->maplevel, sc->maxhp, sc->maxsp, sc->maxgrace);
177
177 return retbuf; 178 return retbuf;
178} 179}
179 180
180/* 181/*
181 * add_score() adds the given score-structure to the high-score list, but 182 * add_score() adds the given score-structure to the high-score list, but

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines