Monsters can track hero through fixed teleport traps

Also make fixed teleport traps always trigger when entered.
This commit is contained in:
Pasi Kallinen
2024-06-15 18:44:25 +03:00
parent 4e1b6411bf
commit 89ea47f702
6 changed files with 31 additions and 1 deletions

View File

@@ -52,6 +52,19 @@ gettrack(coordxy x, coordxy y)
return (coord *) 0;
}
/* return TRUE if x,y has hero tracks on it */
boolean
hastrack(coordxy x, coordxy y)
{
int i;
for (i = 0; i < utcnt; i++)
if (utrack[i].x == x && utrack[i].y == y)
return TRUE;
return FALSE;
}
/* save the hero tracking info */
void
save_track(NHFILE *nhfp)