summaryrefslogtreecommitdiff
path: root/src/soundmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-10 18:53:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-10 18:53:11 +0300
commitdcea1b0b671590104c663e2a6066c15cd40a13ff (patch)
tree6201f08c805e361d5fa42e7371042d86324447ff /src/soundmanager.cpp
parent9c53b966c34d505e27681f2ed51998d3a737a663 (diff)
downloadmv-dcea1b0b671590104c663e2a6066c15cd40a13ff.tar.gz
mv-dcea1b0b671590104c663e2a6066c15cd40a13ff.tar.bz2
mv-dcea1b0b671590104c663e2a6066c15cd40a13ff.tar.xz
mv-dcea1b0b671590104c663e2a6066c15cd40a13ff.zip
Add assert about wrong sfx path.
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r--src/soundmanager.cpp5
1 files changed, 5 insertions, 0 deletions
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)
{