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

Function notice_mons_cmp

src/hack.c:1734–1741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1732}
1733
1734staticfn int QSORTCALLBACK
1735notice_mons_cmp(const genericptr ptr1, const genericptr ptr2)
1736{
1737 const struct monst *m1 = *(const struct monst **) ptr1,
1738 *m2 = *(const struct monst **) ptr2;
1739
1740 return (distu(m1->mx, m1->my) - distu(m2->mx, m2->my));
1741}
1742
1743void
1744notice_all_mons(boolean reset)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected