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

Function get_tile

win/share/tileset.c:170–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170const struct TileImage *
171get_tile(unsigned tile_index)
172{
173 if (tile_index >= num_tiles)
174 return &blank_tile;
175 return &tiles[tile_index];
176}
177
178/* Note that any tile returned by this function must be freed */
179struct TileImage *

Callers 2

read_tile_indexesFunction · 0.85
vesa_InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected