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

Function monlineu

src/mon.c:2056–2060  ·  view source on GitHub ↗

is in direct line with where 'mon' thinks hero is? */

Source from the content-addressed store, hash-verified

2054
2055/* is <nx,ny> in direct line with where 'mon' thinks hero is? */
2056staticfn boolean
2057monlineu(struct monst *mon, int nx, int ny)
2058{
2059 return online2(nx, ny, mon->mux, mon->muy);
2060}
2061
2062/* return flags based on monster data, for mfndpos() */
2063long

Callers 1

mfndposFunction · 0.85

Calls 1

online2Function · 0.85

Tested by

no test coverage detected