From 7c883da9183238a0f1d75e2e815bc5f689956f14 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Thu, 9 Sep 2010 22:11:47 +0200 Subject: Fixing sound effects The sound effects did not get played, because the path was wrong. Reviewed-by: Turmfalke --- src/sound.cpp | 3 +-- 1 file changed, 1 insertion(+), 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()); -- cgit v1.2.3-70-g09d2