… | |
… | |
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 |