From ee4b9acfeb1a860cf67957548c544ff893ce71bb Mon Sep 17 00:00:00 2001 From: David Skoland Date: Fri, 16 Nov 2018 02:37:57 +0100 Subject: fixed get_sounds_path as well + nuked the last unneccessary tolower calls --- aosfxplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aosfxplayer.cpp') diff --git a/aosfxplayer.cpp b/aosfxplayer.cpp index 03a3ac52..575e91f9 100644 --- a/aosfxplayer.cpp +++ b/aosfxplayer.cpp @@ -16,12 +16,12 @@ AOSfxPlayer::~AOSfxPlayer() void AOSfxPlayer::play(QString p_sfx, QString p_char) { m_sfxplayer->stop(); - p_sfx = p_sfx.toLower(); + p_sfx = p_sfx; QString f_path; if (p_char != "") f_path = ao_app->get_character_path(p_char, p_sfx); else - f_path = ao_app->get_sounds_path() + p_sfx; + f_path = ao_app->get_sounds_path(p_sfx); m_sfxplayer->setSource(QUrl::fromLocalFile(f_path)); set_volume(m_volume); -- cgit