MCPcopy Create free account
hub / github.com/NetHack/NetHack / runmode_delay_output

Function runmode_delay_output

src/hack.c:2995–3017  ·  view source on GitHub ↗

delay output based on value of runmode, if hero is running or doing a multi-turn action */

Source from the content-addressed store, hash-verified

2993/* delay output based on value of runmode,
2994 if hero is running or doing a multi-turn action */
2995void
2996runmode_delay_output(void)
2997{
2998 if ((svc.context.run || gm.multi) && flags.runmode != RUN_TPORT) {
2999 /* for tport mode, don't display anything until we've stopped;
3000 for normal (leap) mode, update display every 7th step
3001 (relative to turn counter; ought to be to start of running);
3002 for walk and crawl (visual debugging) modes, update the
3003 display after every step */
3004 if (flags.runmode != RUN_LEAP || !(svm.moves % 7L)) {
3005 /* moveloop() suppresses time_botl when running */
3006 disp.time_botl = flags.time;
3007 curs_on_u();
3008 nh_delay_output();
3009 if (flags.runmode == RUN_CRAWL) {
3010 nh_delay_output();
3011 nh_delay_output();
3012 nh_delay_output();
3013 nh_delay_output();
3014 }
3015 }
3016 }
3017}
3018
3019staticfn void
3020maybe_smudge_engr(coordxy x1, coordxy y1, coordxy x2, coordxy y2)

Callers 2

allmain.cFile · 0.85
domove_coreFunction · 0.85

Calls 1

curs_on_uFunction · 0.85

Tested by

no test coverage detected