add to track */
| 21 | #ifndef SFCTOOL |
| 22 | /* add to track */ |
| 23 | void |
| 24 | settrack(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 */ |