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

Function save_track

src/track.c:75–89  ·  view source on GitHub ↗

save the hero tracking info */

Source from the content-addressed store, hash-verified

73
74/* save the hero tracking info */
75void
76save_track(NHFILE *nhfp)
77{
78 if (update_file(nhfp)) {
79 int i;
80
81 Sfo_int(nhfp, &utcnt, "track-utcnt");
82 Sfo_int(nhfp, &utpnt, "track-utpnt");
83 for (i = 0; i < utcnt; i++) {
84 Sfo_nhcoord(nhfp, &utrack[i], "utrack");
85 }
86 }
87 if (release_data(nhfp))
88 initrack();
89}
90
91/* restore the hero tracking info */
92void

Callers 1

savelev_coreFunction · 0.85

Calls 2

update_fileFunction · 0.85
initrackFunction · 0.85

Tested by

no test coverage detected