Index: util.c =================================================================== --- util.c (revision 1624) +++ util.c (working copy) @@ -1219,7 +1219,7 @@ * Mega-Hack -- Note the use of "inkey_hack" to allow the "Borg" to steal * control of the keyboard from the user. */ -ui_event_data inkey_ex(void) +ui_event_data inkey_ex_aux(void) { bool cursor_state; ui_event_data kk; @@ -1479,6 +1479,23 @@ return (ke); } +ui_event_data inkey_ex(void) +{ + ui_event_data ke; + if (!(p_ptr->no_score & NOSCORE_REPLAY)) + { + ke = inkey_ex_aux(); + writelog(ke); + return ke; + } + while (0 == Term_inkey(&ke, false, false)) { + ke = inkey_ex_aux(); + if (dungeon_stateless(ke)) { + return ke; + } + } + return readlog(); +} /* * Get a keypress or mouse click from the user.