{
register int i = 0, j, m = 0;
- int pr, pc, pa, clev/*, al*/;
+ int pr, clev/*, al*/;
high_score the_score;
char buf[1024], out_val[256];
if (highscore_seek(j)) break;
if (highscore_read(&the_score)) break;
pr = atoi(the_score.p_r);
- pc = atoi(the_score.p_c);
- pa = atoi(the_score.p_a);
clev = atoi(the_score.cur_lev);
#ifdef JP
void race_score(int race_num)
{
register int i = 0, j, m = 0;
- int pr, pc, pa, clev, lastlev;
+ int pr, clev, lastlev;
high_score the_score;
char buf[1024], out_val[256], tmp_str[80];
if (highscore_seek(j)) break;
if (highscore_read(&the_score)) break;
pr = atoi(the_score.p_r);
- pc = atoi(the_score.p_c);
- pa = atoi(the_score.p_a);
clev = atoi(the_score.cur_lev);
if (pr == race_num)
{
int wid, hgt;
int cx, cy;
+ bool seppuku = streq(p_ptr->died_from, "Seppuku");
/* Hack -- retire in town */
dun_level = 0;
/* Fake death */
- if (!streq(p_ptr->died_from, "Seppuku"))
+ if (!seppuku)
#ifdef JP
/* °úÂष¤¿¤È¤¤Î¼±ÊÌʸ»ú */
(void)strcpy(p_ptr->died_from, "ripe");
put_str(format("All Hail the Mighty %s!", sp_ptr->winner), cy + 5, cx - 13);
#endif
+ /* If player did Seppuku, that is already written in playrecord */
+ if (!seppuku)
+ {
#ifdef JP
- do_cmd_write_nikki(NIKKI_BUNSHOU, 0, "¥À¥ó¥¸¥ç¥ó¤Îõº÷¤«¤é°úÂष¤¿¡£");
- do_cmd_write_nikki(NIKKI_GAMESTART, 1, "-------- ¥²¡¼¥à¥ª¡¼¥Ð¡¼ --------");
+ do_cmd_write_nikki(NIKKI_BUNSHOU, 0, "¥À¥ó¥¸¥ç¥ó¤Îõº÷¤«¤é°úÂष¤¿¡£");
+ do_cmd_write_nikki(NIKKI_GAMESTART, 1, "-------- ¥²¡¼¥à¥ª¡¼¥Ð¡¼ --------");
#else
- do_cmd_write_nikki(NIKKI_BUNSHOU, 0, "retire exploring dungeons.");
- do_cmd_write_nikki(NIKKI_GAMESTART, 1, "-------- Game Over --------");
+ do_cmd_write_nikki(NIKKI_BUNSHOU, 0, "retired exploring dungeons.");
+ do_cmd_write_nikki(NIKKI_GAMESTART, 1, "-------- Game Over --------");
#endif
- do_cmd_write_nikki(NIKKI_BUNSHOU, 1, "\n\n\n\n");
+ do_cmd_write_nikki(NIKKI_BUNSHOU, 1, "\n\n\n\n");
+ }
/* Flush input */
flush();