From 962462c1c5bfb07cda13b18a6d6a40ba48427da4 Mon Sep 17 00:00:00 2001 From: jeremy Date: Thu, 4 Jul 2019 22:54:39 +0200 Subject: [PATCH] Removed unnecessary calls to stopSound3D playSound3D (the one taking a ptr) already stops the sound if it's playing. --- apps/openmw/mwmechanics/character.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index 7966526f2e..00b3c0c67f 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -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); } }