MCPcopy Index your code
hub / github.com/NetHack/NetHack / selection_getpoint

Function selection_getpoint

src/selvar.c:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167coordxy
168selection_getpoint(
169 coordxy x, coordxy y,
170 struct selectionvar *sel)
171{
172 if (!sel || !sel->map)
173 return 0;
174 if (x < 0 || y < 0 || x >= sel->wid || y >= sel->hei)
175 return 0;
176
177 return (sel->map[sel->wid * y + x] - 1);
178}
179
180void
181selection_setpoint(

Callers 15

findtravelpathFunction · 0.85
l_selection_numpointsFunction · 0.85
l_selection_getpointFunction · 0.85
l_selection_andFunction · 0.85
l_selection_orFunction · 0.85
l_selection_xorFunction · 0.85
l_selection_subFunction · 0.85
l_selection_iterateFunction · 0.85
selection_recalc_boundsFunction · 0.85
selection_notFunction · 0.85
selection_filter_percentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected