mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:53:53 +00:00
Use Play_TypeFoot for 'left' and 'right' soundgen keys
This commit is contained in:
parent
14e0c182f3
commit
0cb7d186e7
1 changed files with 4 additions and 1 deletions
|
@ -516,7 +516,10 @@ bool Animation::handleTextKey(AnimState &state, const std::string &groupname, co
|
|||
if(!sound.empty())
|
||||
{
|
||||
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
|
||||
sndMgr->playSound3D(mPtr, sound, 1.0f, 1.0f);
|
||||
MWBase::SoundManager::PlayType type = MWBase::SoundManager::Play_TypeSfx;
|
||||
if(evt.compare(10, evt.size()-10, "left") == 0 || evt.compare(10, evt.size()-10, "right") == 0)
|
||||
type = MWBase::SoundManager::Play_TypeFoot;
|
||||
sndMgr->playSound3D(mPtr, sound, 1.0f, 1.0f, type);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue