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

Function mkroom_cmp

src/mklev.c:59–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57/* Args must be (const genericptr) so that qsort will always be happy. */
58
59staticfn int QSORTCALLBACK
60mkroom_cmp(const genericptr vx, const genericptr vy)
61{
62 const struct mkroom *x, *y;
63
64 x = (const struct mkroom *) vx;
65 y = (const struct mkroom *) vy;
66 if (x->lx < y->lx)
67 return -1;
68 return (x->lx > y->lx);
69}
70
71/* is x,y a good location for a door into room? */
72staticfn boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected