mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Turn on material based pushable sounds
Quick code change. Working on locating samples for each material
This commit is contained in:
parent
ef16d24450
commit
9883699ed4
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue