1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 10:53:54 +00:00

Recognize soundgen animation markers

This commit is contained in:
Chris Robinson 2013-01-17 10:16:36 -08:00
parent 82d549e22f
commit da4f17859e

View file

@ -67,10 +67,17 @@ CharacterController::CharacterController(const CharacterController &rhs)
void CharacterController::markerEvent(const std::string &evt)
{
if(evt.compare(0, 6, "sound:") == 0)
if(evt.compare(0, 7, "sound: ") == 0)
{
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
sndMgr->playSound3D(mPtr, evt.substr(7), 1.0f, 1.0f);
return;
}
if(evt.compare(0, 10, "soundgen: ") == 0)
{
// FIXME: Lookup the SoundGen (SNDG) for the specified sound that corresponds
// to this actor type
return;
}
}