diff options
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r-- | src/soundmanager.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp index 4e8a90770..d28091ce5 100644 --- a/src/soundmanager.cpp +++ b/src/soundmanager.cpp @@ -456,16 +456,7 @@ void SoundManager::playSfx(const std::string &path, if (!mInstalled || path.empty() || !mPlayBattle) return; - std::string tmpPath; - if (path.compare(0, 4, "sfx/") == 0) - { - tmpPath = path; - reportAlways("Sfx sound with sfx/ in path. Please remove sfx/"); - } - else - { - tmpPath = pathJoin(paths.getValue("sfx", "sfx"), path); - } + std::string tmpPath = pathJoin(paths.getStringValue("sfx"), path); SoundEffect *const sample = Loader::getSoundEffect(tmpPath); if (sample != nullptr) { |