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

Function in_fcorridor

src/vault.c:191–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191staticfn boolean
192in_fcorridor(struct monst *grd, coordxy x, coordxy y)
193{
194 int fci;
195 struct egd *egrd = EGD(grd);
196
197 for (fci = egrd->fcbeg; fci < egrd->fcend; fci++)
198 if (x == egrd->fakecorr[fci].fx && y == egrd->fakecorr[fci].fy)
199 return TRUE;
200 return FALSE;
201}
202
203struct monst *
204findgd(void)

Callers 6

clear_fcorrFunction · 0.85
uleftvaultFunction · 0.85
find_guard_destFunction · 0.85
wallify_vaultFunction · 0.85
gd_move_cleanupFunction · 0.85
gd_moveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected