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

Function is_solid

src/mkmaze.c:69–73  ·  view source on GitHub ↗

return TRUE if out of bounds, wall or rock */

Source from the content-addressed store, hash-verified

67
68/* return TRUE if out of bounds, wall or rock */
69staticfn boolean
70is_solid(coordxy x, coordxy y)
71{
72 return (boolean) (!isok(x, y) || IS_STWALL(levl[x][y].typ));
73}
74
75/* set map terrain type, handling lava lit, ice melt timers, etc */
76boolean

Callers 1

wall_cleanupFunction · 0.85

Calls 1

isokFunction · 0.85

Tested by

no test coverage detected