summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2022-07-10 15:34:53 +0200
committerSmallJoker <mk939@ymail.com>2022-07-10 15:34:53 +0200
commit8724fe6e3fc2b6c0b78123f1f95fd8c6c6817dd5 (patch)
tree3a2e6b2f345d655c34ca82a40e502ff49e204ed5
parentfae8726a769f9ad3bb81bf3e364265662d333dd0 (diff)
downloadminetest-8724fe6e3fc2b6c0b78123f1f95fd8c6c6817dd5.tar.gz
minetest-8724fe6e3fc2b6c0b78123f1f95fd8c6c6817dd5.tar.bz2
minetest-8724fe6e3fc2b6c0b78123f1f95fd8c6c6817dd5.zip
GUIFormSpecMenu: Fix parameter order
Fixes a regression caused by e51f47461 because C++ implicitly converts boolean to float. no matter what.
-rw-r--r--src/gui/guiFormSpecMenu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index 342f74b16..137673b07 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -4498,7 +4498,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
if ((s.ftype == f_TabHeader) &&
(s.fid == event.GUIEvent.Caller->getID())) {
if (!s.sound.empty() && m_sound_manager)
- m_sound_manager->playSound(SimpleSoundSpec(s.sound, false, 1.0f));
+ m_sound_manager->playSound(SimpleSoundSpec(s.sound, 1.0f));
s.send = true;
acceptInput();
s.send = false;
@@ -4543,7 +4543,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
if (s.ftype == f_Button || s.ftype == f_CheckBox) {
if (!s.sound.empty() && m_sound_manager)
- m_sound_manager->playSound(SimpleSoundSpec(s.sound, false, 1.0f));
+ m_sound_manager->playSound(SimpleSoundSpec(s.sound, 1.0f));
s.send = true;
if (s.is_exit) {
@@ -4568,7 +4568,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
}
}
if (!s.sound.empty() && m_sound_manager)
- m_sound_manager->playSound(SimpleSoundSpec(s.sound, false, 1.0f));
+ m_sound_manager->playSound(SimpleSoundSpec(s.sound, 1.0f));
s.send = true;
acceptInput(quit_mode_no);
@@ -4586,7 +4586,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
s.fdefault = L"";
} else if (s.ftype == f_Unknown || s.ftype == f_HyperText) {
if (!s.sound.empty() && m_sound_manager)
- m_sound_manager->playSound(SimpleSoundSpec(s.sound, false, 1.0f));
+ m_sound_manager->playSound(SimpleSoundSpec(s.sound, 1.0f));
s.send = true;
acceptInput();
s.send = false;