summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2010-09-09 22:11:47 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2010-09-09 22:11:47 +0200
commit7c883da9183238a0f1d75e2e815bc5f689956f14 (patch)
treee4d5fe941c685580d8726adc907a72d7edf8c526
parent173cbf107b35fb191724e5386cf3bcf0106c80ae (diff)
downloadmana-7c883da9183238a0f1d75e2e815bc5f689956f14.tar.gz
mana-7c883da9183238a0f1d75e2e815bc5f689956f14.tar.bz2
mana-7c883da9183238a0f1d75e2e815bc5f689956f14.tar.xz
mana-7c883da9183238a0f1d75e2e815bc5f689956f14.zip
Fixing sound effects
The sound effects did not get played, because the path was wrong. Reviewed-by: Turmfalke
-rw-r--r--src/sound.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index 241e25e4..d3542a48 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -239,8 +239,7 @@ void Sound::playSfx(const std::string &path)
return;
ResourceManager *resman = ResourceManager::getInstance();
- SoundEffect *sample = resman->getSoundEffect(
- paths.getValue("sfx", "sfx/") + path);
+ SoundEffect *sample = resman->getSoundEffect(path);
if (sample)
{
logger->log("Sound::playSfx() Playing: %s", path.c_str());