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

Function join_map_cleanup

src/mkmap.c:245–255  ·  view source on GitHub ↗

join_map uses temporary rooms; clean up after it */

Source from the content-addressed store, hash-verified

243
244/* join_map uses temporary rooms; clean up after it */
245staticfn void
246join_map_cleanup(void)
247{
248 coordxy x, y;
249
250 for (x = 1; x < COLNO; x++)
251 for (y = 0; y < ROWNO; y++)
252 levl[x][y].roomno = NO_ROOM;
253 svn.nroom = gn.nsubroom = 0;
254 svr.rooms[svn.nroom].hx = gs.subrooms[gn.nsubroom].hx = -1;
255}
256
257staticfn void
258join_map(schar bg_typ, schar fg_typ)

Callers 1

join_mapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected