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

Function rnd_rect

src/rect.c:103–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 */
102
103NhRect *
104rnd_rect(void)
105{
106 return rect_cnt > 0 ? &rect[rn2(rect_cnt)] : 0;
107}
108
109/*
110 * Search intersection between two rectangles (r1 & r2).

Callers 3

makeroomsFunction · 0.85
makelevelFunction · 0.85
create_roomFunction · 0.85

Calls 1

rn2Function · 0.85

Tested by

no test coverage detected