mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
Removed unnecessary calls to stopSound3D
playSound3D (the one taking a ptr) already stops the sound if it's playing.
This commit is contained in:
parent
c8c06ceee9
commit
962462c1c5
@ -983,7 +983,6 @@ void CharacterController::handleTextKey(const std::string &groupname, const std:
|
||||
if(evt.compare(0, 7, "sound: ") == 0)
|
||||
{
|
||||
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
|
||||
sndMgr->stopSound3D(mPtr, evt.substr(7));
|
||||
sndMgr->playSound3D(mPtr, evt.substr(7), 1.0f, 1.0f);
|
||||
return;
|
||||
}
|
||||
@ -1024,7 +1023,6 @@ void CharacterController::handleTextKey(const std::string &groupname, const std:
|
||||
}
|
||||
else
|
||||
{
|
||||
sndMgr->stopSound3D(mPtr, sound);
|
||||
sndMgr->playSound3D(mPtr, sound, volume, pitch);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user