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

Function mapfrag_get

src/sp_lev.c:265–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265schar
266mapfrag_get(struct mapfragment *mf, int x, int y)
267{
268 if (y < 0 || x < 0 || y > mf->hei - 1 || x > mf->wid - 1)
269 panic("outside mapfrag (%i,%i), wanted (%i,%i)",
270 mf->wid, mf->hei, x, y);
271 return splev_chr2typ(mf->data[y * (mf->wid + 1) + x]);
272}
273
274boolean
275mapfrag_canmatch(struct mapfragment *mf)

Callers 3

mapfrag_errorFunction · 0.85
mapfrag_matchFunction · 0.85
lspo_mapFunction · 0.85

Calls 2

splev_chr2typFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected