summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-06 23:44:35 +0300
committerAndrei Karas <akaras@inbox.ru>2018-08-06 23:44:35 +0300
commit6f7f0b79bbf66db2f9200ab1450166cb699e3a08 (patch)
tree6f05fd511779c373b1db8572ebc5cd9e25dce363
parent5a6b02b6aba646816a7d27a85dd6724de554a157 (diff)
downloadmv-6f7f0b79bbf66db2f9200ab1450166cb699e3a08.tar.gz
mv-6f7f0b79bbf66db2f9200ab1450166cb699e3a08.tar.bz2
mv-6f7f0b79bbf66db2f9200ab1450166cb699e3a08.tar.xz
mv-6f7f0b79bbf66db2f9200ab1450166cb699e3a08.zip
Play any item related sound as game sound and not as gui sounds.
-rw-r--r--src/itemsoundmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/itemsoundmanager.cpp b/src/itemsoundmanager.cpp
index b33d2056f..aef955886 100644
--- a/src/itemsoundmanager.cpp
+++ b/src/itemsoundmanager.cpp
@@ -74,7 +74,9 @@ std::string ItemSoundManager::getSoundEffect(const Being *const being,
void ItemSoundManager::playSfx(const ItemInfo &info,
const ItemSoundEvent::Type sound)
{
- soundManager.playGuiSfx(getSoundEffect(localPlayer, info, sound));
+ soundManager.playSfx(getSoundEffect(localPlayer, info, sound),
+ 0,
+ 0);
}
void ItemSoundManager::playSfx(const Being *const being,