Apply runmode to multiturn actions

This commit is contained in:
Pasi Kallinen
2021-12-21 17:37:48 +02:00
parent 8f366c725e
commit b1ed92abad
4 changed files with 14 additions and 5 deletions

View File

@@ -2141,7 +2141,15 @@ domove_core(void)
g.nomovemsg = "";
}
if (g.context.run && flags.runmode != RUN_TPORT) {
runmode_delay_output();
}
/* delay output based on value of runmode,
if hero is running or doing a multi-turn action */
void
runmode_delay_output(void)
{
if ((g.context.run || g.multi) && flags.runmode != RUN_TPORT) {
/* for tport mode, don't display anything until we've stopped;
for normal (leap) mode, update display every 7th step
(relative to turn counter; ought to be to start of running);