diff options
| author | David Skoland <davidskoland@gmail.com> | 2018-11-16 02:37:57 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2018-11-16 02:37:57 +0100 |
| commit | ee4b9acfeb1a860cf67957548c544ff893ce71bb (patch) | |
| tree | c9f3ab70d7a97d411bbf2d3316b3e228c796d8ce /aosfxplayer.cpp | |
| parent | 727c39a1df42a5aba8a9c863ee2f05169d204ffa (diff) | |
fixed get_sounds_path as well + nuked the last unneccessary tolower calls
Diffstat (limited to 'aosfxplayer.cpp')
| -rw-r--r-- | aosfxplayer.cpp | 4 |
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); |
