Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
146
void
147
remove_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_rects
Function · 0.85
Calls
1
get_rect_ind
Function · 0.85
Tested by
no test coverage detected