runmode option

Provide user control over screen updating for multi-step movement
(run via shift, control, &c and also travel).  [See cvs history for
fixes34.1 for more details.]
This commit is contained in:
nethack.rankin
2002-07-28 10:45:46 +00:00
parent c5540f4687
commit aedd6947d4
7 changed files with 131 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)hack.c 3.4 2002/04/06 */
/* SCCS Id: @(#)hack.c 3.4 2002/07/27 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -1367,6 +1367,21 @@ domove()
nomul(-2);
nomovemsg = "";
}
if (flags.run && iflags.runmode != RUN_TPORT) {
/* display every step or every 7th step depending upon mode */
if (iflags.runmode != RUN_LEAP || !(moves % 7L)) {
if (flags.time) flags.botl = 1;
curs_on_u();
delay_output();
if (iflags.runmode == RUN_CRAWL) {
delay_output();
delay_output();
delay_output();
delay_output();
}
}
}
}
void