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

Function CloseTileFile

sys/msdos/pctiles.c:148–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void
149CloseTileFile(boolean filestyle)
150{
151 fclose(filestyle ? tilefile_O : tilefile);
152#ifdef TILES_IN_RAM
153 if (!filestyle && tiles_in_ram) {
154 if (ramtiles)
155 free((genericptr_t) ramtiles);
156 tiles_in_ram = FALSE;
157 } else if (filestyle && otiles_in_ram) {
158 if (oramtiles)
159 free((genericptr_t) oramtiles);
160 otiles_in_ram = FALSE;
161 }
162#endif
163}
164
165struct planar_cell_struct plancell;
166struct overview_planar_cell_struct oplancell;

Callers

nothing calls this directly

Calls 1

fcloseFunction · 0.85

Tested by

no test coverage detected