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

Function ckmailstatus

src/mail.c:460–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458#if !defined(UNIX) && !defined(VMS)
459
460void
461ckmailstatus(void)
462{
463 if (u.uswallow || !flags.biff)
464 return;
465 if (mustgetmail < 0) {
466#if defined(AMIGA) || defined(MSDOS) || defined(TOS)
467 mustgetmail = (svm.moves < 2000) ? (100 + rn2(2000))
468 : (2000 + rn2(3000));
469#endif
470 return;
471 }
472 if (--mustgetmail <= 0) {
473 static struct mail_info deliver = {
474 MSG_MAIL, "I have some mail for you", 0, 0
475 };
476 newmail(&deliver);
477 mustgetmail = -1;
478 }
479}
480
481DISABLE_WARNING_FORMAT_NONLITERAL
482

Callers 1

allmain.cFile · 0.70

Calls 8

rn2Function · 0.85
ck_server_admin_msgFunction · 0.85
free_maildataFunction · 0.85
getmailstatusFunction · 0.85
parse_next_broadcastFunction · 0.85
newmailFunction · 0.70
statClass · 0.70
plineFunction · 0.70

Tested by

no test coverage detected