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

Function qt_timer_fire

win/Qt/qt_bind.cpp:682–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682static void
683qt_timer_fire(void)
684{
685 if (iflags.idlecheckpoint) {
686 /* no input for 30 seconds, so let's take
687 * advantage and do a game checkpoint,
688 * then resume the wait.
689 */
690#if defined(INSURANCE)
691 save_currentstate();
692#endif /* INSURANCE */
693 }
694 if (qt_input_timer->isActive())
695 qt_input_timer->stop();
696}
697
698//void
699//cancel_qt_input_timer(void)

Callers

nothing calls this directly

Calls 1

save_currentstateFunction · 0.85

Tested by

no test coverage detected