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

Function iswall_or_stone

src/mkmaze.c:58–66  ·  view source on GitHub ↗

used to determine if wall spines can join this location */

Source from the content-addressed store, hash-verified

56
57/* used to determine if wall spines can join this location */
58staticfn int
59iswall_or_stone(coordxy x, coordxy y)
60{
61 /* out of bounds = stone */
62 if (!isok(x, y))
63 return 1;
64
65 return (levl[x][y].typ == STONE || iswall(x, y));
66}
67
68/* return TRUE if out of bounds, wall or rock */
69staticfn boolean

Callers

nothing calls this directly

Calls 2

isokFunction · 0.85
iswallFunction · 0.85

Tested by

no test coverage detected