MCPcopy Create free account
hub / github.com/diasurgical/devilution / FreeEffects

Function FreeEffects

Source/effects.cpp:955–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953}
954
955void FreeEffects()
956{
957 int mtype, i, j, k;
958 char *file;
959 TSnd *pSnd;
960
961 for (i = 0; i < nummtypes; i++) {
962 mtype = Monsters[i].mtype;
963 for (j = 0; j < 4; ++j) {
964 for (k = 0; k < 2; ++k) {
965 pSnd = Monsters[i].Snds[j][k];
966 if (pSnd) {
967 Monsters[i].Snds[j][k] = NULL;
968 file = pSnd->sound_path;
969 pSnd->sound_path = NULL;
970 sound_file_cleanup(pSnd);
971 mem_free_dbg(file);
972 }
973 }
974 }
975 }
976}
977
978void PlayEffect(int i, int mode)
979{

Callers 1

FreeGameMemFunction · 0.85

Calls 2

sound_file_cleanupFunction · 0.85
mem_free_dbgFunction · 0.85

Tested by

no test coverage detected