Turn on material based pushable sounds

Quick code change. Working on locating samples for each material
This commit is contained in:
Stranger1992 2024-07-01 18:15:49 +01:00
parent ef16d24450
commit 9883699ed4

View file

@ -57,11 +57,8 @@ namespace TEN::Entities::Generic
{ MaterialType::Custom8, PushableSoundData{ SFX_TR4_PUSHABLE_SOUND, SFX_TR4_PUSH_BLOCK_END, SFX_TR4_BOULDER_FALL } }
};
// TODO: Uncomment when we get actual sounds for them.
//auto it = SOUND_DATA_MAP.find(material);
//return ((it != SOUND_DATA_MAP.end()) ? it->second : SOUND_DATA_DEFAULT);
return DEFAULT_SOUND_DATA;
auto it = SOUND_DATA_MAP.find(material);
return ((it != SOUND_DATA_MAP.end()) ? it->second : DEFAULT_SOUND_DATA);
}
static std::optional<int> GetPushableSoundID(const ItemInfo& pushableItem, PushableSoundType soundType)