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

Function get_map

src/mkmap.c:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54staticfn schar
55get_map(coordxy col, coordxy row, schar bg_typ)
56{
57 if (col <= 0 || row < 0 || col > WIDTH || row >= HEIGHT)
58 return bg_typ;
59 return levl[col][row].typ;
60}
61
62staticfn const int dirs[16] = {
63 -1, -1 /**/, -1, 0 /**/, -1, 1 /**/, 0, -1 /**/,

Callers 3

pass_oneFunction · 0.85
pass_twoFunction · 0.85
pass_threeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected