aboutsummaryrefslogtreecommitdiff
path: root/aosfxplayer.cpp
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2018-11-16 02:37:57 +0100
committerDavid Skoland <davidskoland@gmail.com>2018-11-16 02:37:57 +0100
commitee4b9acfeb1a860cf67957548c544ff893ce71bb (patch)
treec9f3ab70d7a97d411bbf2d3316b3e228c796d8ce /aosfxplayer.cpp
parent727c39a1df42a5aba8a9c863ee2f05169d204ffa (diff)
fixed get_sounds_path as well + nuked the last unneccessary tolower calls
Diffstat (limited to 'aosfxplayer.cpp')
-rw-r--r--aosfxplayer.cpp4
1 files changed, 2 insertions, 2 deletions
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);