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

Function restore_oracles

src/rumors.c:622–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620#endif /* !SFCTOOL */
621
622void
623restore_oracles(NHFILE *nhfp)
624{
625 int i;
626
627 Sfi_unsigned(nhfp, &svo.oracle_cnt, "oracle-oracle_cnt");
628 if (svo.oracle_cnt) {
629 svo.oracle_loc =
630 (unsigned long *) alloc(svo.oracle_cnt * sizeof (unsigned long));
631 for (i = 0; (unsigned) i < svo.oracle_cnt; ++i) {
632 Sfi_ulong(nhfp, &svo.oracle_loc[i], "oracle-oracle_loc");
633 }
634 go.oracle_flg = 1; /* no need to call init_oracles() */
635 }
636}
637
638#ifndef SFCTOOL
639void

Callers 1

restgamestateFunction · 0.85

Calls 1

allocFunction · 0.70

Tested by

no test coverage detected