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

Function skip_premap_detect

src/detect.c:2123–2130  ·  view source on GitHub ↗

skip premap detection of areas outside Sokoban map */

Source from the content-addressed store, hash-verified

2121
2122/* skip premap detection of areas outside Sokoban map */
2123staticfn boolean
2124skip_premap_detect(coordxy x, coordxy y)
2125{
2126 if ((levl[x][y].typ == STONE)
2127 && (levl[x][y].wall_info & (W_NONDIGGABLE | W_NONPASSWALL)) != 0)
2128 return TRUE;
2129 return FALSE;
2130}
2131
2132/* Pre-map (the sokoban) levels */
2133void

Callers 1

premap_detectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected