forked from mirror/openmw-tes3mp
Removed a couple of warnings with nosound
This commit is contained in:
parent
f567950e25
commit
d10b18b0f3
1 changed files with 6 additions and 0 deletions
|
@ -358,6 +358,9 @@ namespace MWSound
|
||||||
|
|
||||||
void SoundManager::playPlaylist(std::string playlist)
|
void SoundManager::playPlaylist(std::string playlist)
|
||||||
{
|
{
|
||||||
|
if (!mUsingSound)
|
||||||
|
return;
|
||||||
|
|
||||||
if (playlist == "")
|
if (playlist == "")
|
||||||
{
|
{
|
||||||
if(!isMusicPlaying())
|
if(!isMusicPlaying())
|
||||||
|
@ -379,6 +382,9 @@ namespace MWSound
|
||||||
|
|
||||||
void SoundManager::say (MWWorld::Ptr ptr, const std::string& filename)
|
void SoundManager::say (MWWorld::Ptr ptr, const std::string& filename)
|
||||||
{
|
{
|
||||||
|
if (!mUsingSound)
|
||||||
|
return;
|
||||||
|
|
||||||
// The range values are not tested
|
// The range values are not tested
|
||||||
std::string filePath = Files::FileListLocator(mSoundFiles, filename, mFSStrict, true);
|
std::string filePath = Files::FileListLocator(mSoundFiles, filename, mFSStrict, true);
|
||||||
if(!filePath.empty())
|
if(!filePath.empty())
|
||||||
|
|
Loading…
Reference in a new issue