… | |
… | |
102 | static char * |
102 | static char * |
103 | put_score (score *sc) |
103 | put_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 | |