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

Function iswall

src/mkmaze.c:44–55  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

42
43/* used to determine if wall spines can join this location */
44staticfn int
45iswall(coordxy x, coordxy y)
46{
47 int type;
48
49 if (!isok(x, y))
50 return 0;
51 type = levl[x][y].typ;
52 return (IS_WALL(type) || IS_DOOR(type)
53 || type == LAVAWALL || type == WATER
54 || type == SDOOR || type == IRONBARS);
55}
56
57/* used to determine if wall spines can join this location */
58staticfn int

Callers 2

iswall_or_stoneFunction · 0.85
fix_wall_spinesFunction · 0.85

Calls 1

isokFunction · 0.85

Tested by

no test coverage detected