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

Function settrack

src/track.c:23–37  ·  view source on GitHub ↗

add to track */

Source from the content-addressed store, hash-verified

21#ifndef SFCTOOL
22/* add to track */
23void
24settrack(void)
25{
26 if ((uleft && uleft->otyp == RIN_STEALTH)
27 || (uright && uright->otyp == RIN_STEALTH))
28 return;
29
30 if (utcnt < UTSZ)
31 utcnt++;
32 if (utpnt == UTSZ)
33 utpnt = 0;
34 utrack[utpnt].x = u.ux;
35 utrack[utpnt].y = u.uy;
36 utpnt++;
37}
38
39/* get a track coord on or next to x,y and last tracked by hero,
40 returns null if no such track */

Callers 2

allmain.cFile · 0.85
tele_trapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected