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

Function free_dungeons

src/save.c:1059–1071  ·  view source on GitHub ↗

also called by prscore(); this probably belongs in dungeon.c... */

Source from the content-addressed store, hash-verified

1057
1058/* also called by prscore(); this probably belongs in dungeon.c... */
1059void
1060free_dungeons(void)
1061{
1062#ifdef FREE_ALL_MEMORY
1063 NHFILE *tnhfp = get_freeing_nhfile();
1064
1065 savelevchn(tnhfp);
1066 save_dungeon(tnhfp, FALSE, TRUE);
1067 free_luathemes(all_themes);
1068 close_nhfile(tnhfp);
1069#endif
1070 return;
1071}
1072
1073extern int options_set_window_colors_flag; /* options.c */
1074

Callers 2

prscoreFunction · 0.85
freedynamicdataFunction · 0.85

Calls 5

get_freeing_nhfileFunction · 0.85
savelevchnFunction · 0.85
save_dungeonFunction · 0.85
free_luathemesFunction · 0.85
close_nhfileFunction · 0.85

Tested by

no test coverage detected