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

Function mon_in_room

src/sounds.c:19–26  ·  view source on GitHub ↗

this easily could be a macro, but it might overtax dumb compilers */

Source from the content-addressed store, hash-verified

17
18/* this easily could be a macro, but it might overtax dumb compilers */
19staticfn int
20mon_in_room(struct monst *mon, int rmtyp)
21{
22 int rno = levl[mon->mx][mon->my].roomno;
23 if (rno >= ROOMOFFSET)
24 return svr.rooms[rno - ROOMOFFSET].rtype == rmtyp;
25 return FALSE;
26}
27
28
29staticfn boolean

Callers 5

throne_mon_soundFunction · 0.85
beehive_mon_soundFunction · 0.85
morgue_mon_soundFunction · 0.85
zoo_mon_soundFunction · 0.85
dosoundsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected