mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +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
1 changed files with 0 additions and 2 deletions
|
@ -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…
Reference in a new issue