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

Function reset_xystart_size

src/sp_lev.c:205–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203#define TYP_CANNOT_MATCH(typ) ((typ) == MAX_TYPE || (typ) == INVALID_TYPE)
204
205void
206reset_xystart_size(void)
207{
208 gx.xstart = 1; /* column [0] is off limits */
209 gy.ystart = 0;
210 gx.xsize = COLNO - 1; /* 1..COLNO-1 */
211 gy.ysize = ROWNO; /* 0..ROWNO-1 */
212}
213
214/* Does typ match with levl[][].typ, considering special types
215 MATCH_WALL and MAX_TYPE (aka transparency)? */

Callers 6

makeroomsFunction · 0.85
clear_level_structuresFunction · 0.85
spo_endroomFunction · 0.85
lspo_mapFunction · 0.85
sp_level_coder_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected