MCPcopy Index your code
hub / github.com/NetHack/NetHack / maybe_do_tutorial

Function maybe_do_tutorial

src/allmain.c:566–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566staticfn void
567maybe_do_tutorial(void)
568{
569 s_level *sp = find_level("tut-1");
570
571 if (!sp)
572 return;
573
574 if (ask_do_tutorial()) {
575 assign_level(&u.ucamefrom, &u.uz);
576 iflags.nofollowers = TRUE;
577 schedule_goto(&sp->dlevel, UTOTYPE_NONE,
578 "Entering the tutorial.", (char *) 0);
579 deferred_goto();
580 vision_recalc(0);
581 docrt();
582 iflags.nofollowers = FALSE;
583 }
584}
585
586void
587moveloop(boolean resuming)

Callers 1

moveloopFunction · 0.85

Calls 7

find_levelFunction · 0.85
ask_do_tutorialFunction · 0.85
assign_levelFunction · 0.85
schedule_gotoFunction · 0.85
deferred_gotoFunction · 0.85
vision_recalcFunction · 0.85
docrtFunction · 0.85

Tested by

no test coverage detected