From dcea1b0b671590104c663e2a6066c15cd40a13ff Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 10 Mar 2017 18:53:11 +0300 Subject: Add assert about wrong sfx path. --- src/soundmanager.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/soundmanager.cpp') diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp index 5342f82d1..be3750b47 100644 --- a/src/soundmanager.cpp +++ b/src/soundmanager.cpp @@ -454,9 +454,14 @@ void SoundManager::playSfx(const std::string &path, std::string tmpPath; if (!path.compare(0, 4, "sfx/")) + { tmpPath = path; + reportAlways("Sfx sound with sfx/ in path. Please remove sfx/"); + } else + { tmpPath = paths.getValue("sfx", "sfx/").append(path); + } SoundEffect *const sample = Loader::getSoundEffect(tmpPath); if (sample) { -- cgit v1.2.3-70-g09d2