From 3bf3c05f1b999914875d5fb0797c4c9ca098ede0 Mon Sep 17 00:00:00 2001 From: David Athay Date: Sun, 13 Jan 2008 16:28:50 +0000 Subject: Fixed non-default location music loading --- src/sound.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sound.cpp') diff --git a/src/sound.cpp b/src/sound.cpp index cf77cfab..9e265b52 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -126,13 +126,15 @@ void Sound::setSfxVolume(int volume) Mix_Volume(-1, volume); } -void Sound::playMusic(const std::string &path, int loop) +void Sound::playMusic(const std::string &filename, int loop) { if (!mInstalled) return; if (mMusic != NULL) { stopMusic(); } + + std::string path = mResourceManager->getPath("music/" + filename); logger->log("Sound::startMusic() Playing \"%s\" %i times", path.c_str(), loop); -- cgit v1.2.3-70-g09d2