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

Function save_killers

src/end.c:1759–1776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1757}
1758
1759void
1760save_killers(NHFILE *nhfp)
1761{
1762 struct kinfo *kptr;
1763
1764 if (update_file(nhfp)) {
1765 for (kptr = &svk.killer; kptr; kptr = kptr->next) {
1766 Sfo_kinfo(nhfp, kptr, "kinfo");
1767 }
1768 }
1769 if (release_data(nhfp)) {
1770 while (svk.killer.next) {
1771 kptr = svk.killer.next->next;
1772 free((genericptr_t) svk.killer.next);
1773 svk.killer.next = kptr;
1774 }
1775 }
1776}
1777#endif /* !SFCTOOL */
1778
1779void

Callers 1

savegamestateFunction · 0.85

Calls 1

update_fileFunction · 0.85

Tested by

no test coverage detected