push coordinate x,y to mtrack, making monster remember where it was */
| 75 | |
| 76 | /* push coordinate x,y to mtrack, making monster remember where it was */ |
| 77 | void |
| 78 | mon_track_add(struct monst *mtmp, coordxy x, coordxy y) |
| 79 | { |
| 80 | int j; |
| 81 | |
| 82 | for (j = MTSZ - 1; j > 0; j--) |
| 83 | mtmp->mtrack[j] = mtmp->mtrack[j - 1]; |
| 84 | mtmp->mtrack[0].x = x; |
| 85 | mtmp->mtrack[0].y = y; |
| 86 | } |
| 87 | |
| 88 | void |
| 89 | mon_track_clear(struct monst *mtmp) |