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

Function remove_rect

src/rect.c:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 */
145
146void
147remove_rect(NhRect *r)
148{
149 int ind;
150
151 ind = get_rect_ind(r);
152 if (ind >= 0)
153 rect[ind] = rect[--rect_cnt];
154}
155
156/*
157 * Add a NhRect to the list.

Callers 1

split_rectsFunction · 0.85

Calls 1

get_rect_indFunction · 0.85

Tested by

no test coverage detected