void display_scores(int from, int to)
{
char buf[1024];
-
- /* Build the filename */
path_build(buf, sizeof(buf), ANGBAND_DIR_APEX, "scores.raw");
/* Open the binary high score file, for reading */
FAKE_VER_MAJOR, FAKE_VER_MINOR, FAKE_VER_PATCH);
/* Calculate and save the points */
- sprintf(the_score.pts, "%9ld", (long)calc_score());
+ sprintf(the_score.pts, "%9ld", (long)calc_score(p_ptr));
the_score.pts[9] = '\0';
/* Save the current gold */
sprintf(the_score.who, "%-.15s", p_ptr->name);
/* Save the player info */
- sprintf(the_score.uid, "%7u", player_uid);
+ sprintf(the_score.uid, "%7u", p_ptr->player_uid);
sprintf(the_score.sex, "%c", (p_ptr->psex ? 'm' : 'f'));
sprintf(the_score.p_r, "%2d", MIN(p_ptr->prace, MAX_RACES));
sprintf(the_score.p_c, "%2d", MIN(p_ptr->pclass, MAX_CLASS));
FAKE_VER_MAJOR, FAKE_VER_MINOR, FAKE_VER_PATCH);
/* Calculate and save the points */
- sprintf(the_score.pts, "%9ld", (long)calc_score());
+ sprintf(the_score.pts, "%9ld", (long)calc_score(p_ptr));
/* Save the current gold */
sprintf(the_score.gold, "%9lu", (long)p_ptr->au);
sprintf(the_score.who, "%-.15s", p_ptr->name);
/* Save the player info */
- sprintf(the_score.uid, "%7u", player_uid);
+ sprintf(the_score.uid, "%7u", p_ptr->player_uid);
sprintf(the_score.sex, "%c", (p_ptr->psex ? 'm' : 'f'));
sprintf(the_score.p_r, "%2d", MIN(p_ptr->prace, MAX_RACES));
sprintf(the_score.p_c, "%2d", MIN(p_ptr->pclass, MAX_CLASS));
char buf[1024], out_val[256];
screen_save();
-
- /* Build the filename */
path_build(buf, sizeof(buf), ANGBAND_DIR_APEX, "scores.raw");
highscore_fd = fd_open(buf, O_RDONLY);
sprintf(tmp_str,_("最高の%s", "The Greatest of all the %s"), race_info[race_num].title);
prt(tmp_str, 5, 15);
-
- /* Build the filename */
path_build(buf, sizeof(buf), ANGBAND_DIR_APEX, "scores.raw");
highscore_fd = fd_open(buf, O_RDONLY);