mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +00:00
Use Play_TypeFoot for 'left' and 'right' soundgen keys
This commit is contained in:
parent
14e0c182f3
commit
0cb7d186e7
@ -516,7 +516,10 @@ bool Animation::handleTextKey(AnimState &state, const std::string &groupname, co
|
|||||||
if(!sound.empty())
|
if(!sound.empty())
|
||||||
{
|
{
|
||||||
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user