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

Function rest_track

src/track.c:92–105  ·  view source on GitHub ↗

restore the hero tracking info */

Source from the content-addressed store, hash-verified

90
91/* restore the hero tracking info */
92void
93rest_track(NHFILE *nhfp)
94{
95 int i;
96
97 Sfi_int(nhfp, &utcnt, "track-utcnt");
98 Sfi_int(nhfp, &utpnt, "track-utpnt");
99
100 if (utcnt > UTSZ || utpnt > UTSZ)
101 panic("rest_track: impossible pt counts");
102 for (i = 0; i < utcnt; i++) {
103 Sfi_nhcoord(nhfp, &utrack[i], "utrack");
104 }
105}
106
107/*track.c*/

Callers 1

getlevFunction · 0.85

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected