Add "soundlist" keyvalue for individual sound replacements.

This commit is contained in:
Giegue
2023-04-29 02:04:40 -03:00
parent 92d14a6fd3
commit efd801bdea
8 changed files with 185 additions and 12 deletions

View File

@@ -1255,7 +1255,13 @@ int mmDispatchSpawn( edict_t *pent )
for (index = 0; index < MAX_MONSTER_ENTS; index++)
{
if (monsters[index].pMonster != NULL)
{
// free the soundlists first!
if (monsters[index].pMonster->m_srSoundList != NULL)
free(monsters[index].pMonster->m_srSoundList);
delete monsters[index].pMonster;
}
}
// free any allocated keyvalue memory