- I couldn't simply init SoundClass to NAME_SoundClass, even after converting it to the appropriate type. Probably because NAME_SoundClass hasn't been parsed from decorate yet. Instead, I change it to NAME_SoundClass through GetSoundClass if it's valid and currently "player". - The skin checker code in GetSoundClass now checks if the SoundClass is equal to NAME_SoundClass. This mechanism exists so that way reverting the SoundClass to NAME_SoundClass processes the skin soundclass code. If it's different, the code is not processed. - Just returns sclass. This is never null, so there's no need to check if so. - S_FindSkinnedSound just uses GetSoundClass. This makes sure skins are checked. |
||
|---|---|---|
| .. | ||
| s_advsound.cpp | ||
| s_doomsound.cpp | ||
| s_doomsound.h | ||
| s_sndseq.cpp | ||
| s_sndseq.h | ||
| s_sound.h | ||