/* Terminate */
buf[n] = '\0';
- /* Flush */
flush();
/* Convert the trigger */
mode = KEYMAP_MODE_ORIG;
}
- /* Flush */
flush();
/* Get a key */
buf[0] = inkey();
buf[1] = '\0';
- /* Flush */
flush();
/* Convert the trigger */
/* Failure */
if (!okay)
{
- /* Flush */
if (flush_failure) flush();
-
msg_print(_("改良に失敗した。", "The improvement failed."));
-
return (FALSE);
}
else
/* Note */
prt(_("お待ち下さい...", "Please wait..."), 0, 0);
- /* Flush */
Term_fresh();
/* Clear the screen */
}
item_tester_no_ryoute = TRUE;
- /* Prepare the hook */
item_tester_hook = item_tester_hook_activate;
q = _("どのアイテムを始動させますか? ", "Activate which item? ");
return;
}
-
/* Prompt */
put_str(_("思い出を見ますか? (k:殺害順/y/n): ", "Recall details? (k/y/n): "), 0, _(36, 40));
-
/* Query */
query = inkey();
}
item_tester_no_ryoute = TRUE;
- /* Prepare the hook */
item_tester_hook = item_tester_hook_use;
q = _("どれを使いますか?", "Use which item? ");
*/
static void do_cmd_options_autosave(cptr info)
{
- char ch;
-
- int i, k = 0, n = 2;
-
- char buf[80];
+ char ch;
+ int i, k = 0, n = 2;
+ char buf[80];
/* Clear screen */
/* Display the option text */
sprintf(buf, "%-48s: %s (%s)",
- autosave_info[i].o_desc,
- (*autosave_info[i].o_var ? _("はい ", "yes") : _("いいえ", "no ")),
- autosave_info[i].o_text);
+ autosave_info[i].o_desc,
+ (*autosave_info[i].o_var ? _("はい ", "yes") : _("いいえ", "no ")),
+ autosave_info[i].o_text);
c_prt(a, buf, i + 2, 0);
}
prt(format(_("自動セーブの頻度: %d ターン毎", "Timed autosave frequency: every %d turns"), autosave_freq), 5, 0);
if (option_info[i].o_page == page) opt[n++] = i;
}
-
/* Clear screen */
Term_clear();
int n = 0;
char tmp[1024];
- /* Flush */
flush();
/* Do not process macros */
/* Terminate */
buf[n] = '\0';
- /* Flush */
flush();
-
/* Convert the trigger */
ascii_to_text(tmp, buf);
{
char tmp[1024];
-
- /* Flush */
flush();
-
/* Get a key */
buf[0] = inkey();
buf[1] = '\0';
-
/* Convert to ascii */
ascii_to_text(tmp, buf);
/* Hack -- display the trigger */
Term_addstr(-1, TERM_WHITE, tmp);
-
- /* Flush */
flush();
}
/* Display the cause */
Term_putstr(0, 0, -1, TERM_WHITE, _("熟慮の上の自殺!", "Contemplating suicide!"));
- /* Flush */
Term_fresh();
}
/* Description */
object_desc(o_name, o_ptr, (OD_OMIT_PREFIX | OD_NAME_ONLY));
#ifdef JP
-msg_format("%s は明るく輝いた!",
- o_name);
+ msg_format("%s は明るく輝いた!", o_name);
#else
msg_format("%s %s glow%s brightly!",
((item >= 0) ? "Your" : "The"), o_name,
/* Failure */
if (!okay)
{
- /* Flush */
if (flush_failure) flush();
-
msg_print(_("強化に失敗した。", "The enchantment failed."));
-
if (one_in_(3)) chg_virtue(V_ENCHANT, -1);
}
else
/* Failure */
if (!okay)
{
- /* Flush */
if (flush_failure) flush();
-
msg_print(_("強化に失敗した。", "The enchantment failed."));
-
if (one_in_(3)) chg_virtue(V_ENCHANT, -1);
}
else
{
if (record_rand_art)
{
- /* Description */
object_desc(o_name, o_ptr, OD_NAME_ONLY);
do_cmd_write_nikki(NIKKI_ART_SCROLL, 0, o_name);
}
/* Ego-item */
o_ptr->name2 = EGO_FLAME;
-
- /* Enchant */
enchant(o_ptr, randint0(3) + 4, ENCH_TOHIT | ENCH_TODAM);
-
return (TRUE);
}
- /* Flush */
if (flush_failure) flush();
/* Fail */
}
#endif
/* Prompt */
-#ifdef JP
- prt("コマンド:", 20 + xtra_stock, 0);
-#else
- prt("You may: ", 20 + xtra_stock, 0);
-#endif
-
+ prt(_("コマンド:", "You may: "), 20 + xtra_stock, 0);
/* Get a command */
request_command(TRUE);
/* Hack -- flush when requested or needed */
if (p && (!msg || ((p + n) > 72)))
{
- /* Flush */
msg_flush(p);
/* Forget it */
bool is_loading_now; /*!< ロード直後にcalc_bonus()時の徳変化、及びsanity_blast()による異常を抑止する */
bool hack_mutation;
-s16b inven_cnt; /* Number of items in inventory */
-s16b equip_cnt; /* Number of items in equipment */
+s16b inven_cnt; /* Number of items in inventory */
+s16b equip_cnt; /* Number of items in equipment */
-s16b o_max = 1; /* Number of allocated objects */
-s16b o_cnt = 0; /* Number of live objects */
+s16b o_max = 1; /* Number of allocated objects */
+s16b o_cnt = 0; /* Number of live objects */
-MONSTER_IDX m_max = 1; /* Number of allocated monsters */
-MONSTER_IDX m_cnt = 0; /* Number of live monsters */
+MONSTER_IDX m_max = 1; /* Number of allocated monsters */
+MONSTER_IDX m_cnt = 0; /* Number of live monsters */
MONSTER_IDX hack_m_idx = 0; /* Hack -- see "process_monsters()" */
MONSTER_IDX hack_m_idx_ii = 0;
char savefile[1024];
char savefile_base[40];
-/*
- * Array of grids lit by player lite (see "cave.c")
- */
-POSITION_IDX lite_n;
+POSITION_IDX lite_n; //!< Array of grids lit by player lite (see "cave.c")
POSITION lite_y[LITE_MAX];
POSITION lite_x[LITE_MAX];
-/*
- * Array of grids lit by player lite (see "cave.c")
- */
-POSITION_IDX mon_lite_n;
+POSITION_IDX mon_lite_n; //!< Array of grids lit by player lite (see "cave.c")
POSITION mon_lite_y[MON_LITE_MAX];
POSITION mon_lite_x[MON_LITE_MAX];
-/*
- * Array of grids viewable to the player (see "cave.c")
- */
-POSITION_IDX view_n;
+POSITION_IDX view_n; //!< Array of grids viewable to the player (see "cave.c")
POSITION view_y[VIEW_MAX];
POSITION view_x[VIEW_MAX];
-/*
- * Array of grids for use by various functions (see "cave.c")
- */
-POSITION_IDX temp_n;
+POSITION_IDX temp_n; //!< Array of grids for use by various functions (see "cave.c")
POSITION temp_y[TEMP_MAX];
POSITION temp_x[TEMP_MAX];
-/*
- * Array of grids for delayed visual updating (see "cave.c")
- */
-POSITION_IDX redraw_n = 0;
+POSITION_IDX redraw_n = 0; //!< Array of grids for delayed visual updating (see "cave.c")
POSITION redraw_y[REDRAW_MAX];
POSITION redraw_x[REDRAW_MAX];
/* Allow interupt */
if (inkey())
{
- /* Flush */
flush();
-
- /* Stop rolling */
- break;
+ break; // stop rolling
}
/* Dump the stats */