*/
void display_scores_aux(int from, int to, int note, high_score *score)
{
- int i, j, k, n, place;
- byte attr;
+ int i, j, k, n, place;
+ TERM_COLOR attr;
- high_score the_score;
+ high_score the_score;
- char out_val[256];
- char tmp_val[160];
+ GAME_TEXT out_val[256];
+ GAME_TEXT tmp_val[160];
- int wid, hgt, per_screen;
+ TERM_LEN wid, hgt, per_screen;
Term_get_size(&wid, &hgt);
per_screen = (hgt - 4) / 4;
/* Show per_screen per page, until "done" */
for (k = from, place = k+1; k < i; k += per_screen)
{
- /* Clear screen */
Term_clear();
/* Title */
{
int pr, pc, pa, clev, mlev, cdun, mdun;
- cptr user, gold, when, aged;
+ concptr user, gold, when, aged;
/* Hack -- indicate death in yellow */
/* Paranoia -- No score file */
if (highscore_fd < 0) quit(_("スコア・ファイルが使用できません。", "Score file unavailable."));
-
- /* Clear screen */
Term_clear();
/* Display the scores */
/* Save the player name (15 chars) */
sprintf(the_score.who, "%-.15s", p_ptr->name);
- /* Save the player info XXX XXX XXX */
+ /* Save the player info */
sprintf(the_score.uid, "%7u", player_uid);
sprintf(the_score.sex, "%c", (p_ptr->psex ? 'm' : 'f'));
sprintf(the_score.p_r, "%2d", MIN(p_ptr->prace, MAX_RACES));
/* Save the player name (15 chars) */
sprintf(the_score.who, "%-.15s", p_ptr->name);
- /* Save the player info XXX XXX XXX */
+ /* Save the player info */
sprintf(the_score.uid, "%7u", player_uid);
sprintf(the_score.sex, "%c", (p_ptr->psex ? 'm' : 'f'));
sprintf(the_score.p_r, "%2d", MIN(p_ptr->prace, MAX_RACES));
*/
void kingly(void)
{
- int wid, hgt;
- int cx, cy;
+ TERM_LEN wid, hgt;
+ TERM_LEN cx, cy;
bool seppuku = streq(p_ptr->died_from, "Seppuku");
/* Hack -- retire in town */
/* Hack -- Instant Gold */
p_ptr->au += 10000000L;
-
- /* Clear screen */
Term_clear();
/* Display a crown */