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

Function isok

src/cmd.c:4325–4330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4323}
4324
4325int
4326isok(coordxy x, coordxy y)
4327{
4328 /* x corresponds to curx, so x==1 is the first column. Ach. %% */
4329 return x >= 1 && x <= COLNO - 1 && y >= 0 && y <= ROWNO - 1;
4330}
4331
4332/* #herecmdmenu command */
4333staticfn int

Callers 15

nexttodoorFunction · 0.85
somexyspaceFunction · 0.85
give_to_nearby_monFunction · 0.85
done_object_cleanupFunction · 0.85
sanity_check_wormFunction · 0.85
do_mgivennameFunction · 0.85
l_obj_buryFunction · 0.85
detect_obj_trapsFunction · 0.85
dosearch0Function · 0.85
warnrevealFunction · 0.85
hitum_cleaveFunction · 0.85
mhitm_knockbackFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_moveFunction · 0.68