Browse Source

Fix sound slider making its sound at the previous volume level when clicked on

pull/7065/head
Tully 2 years ago
parent
commit
a388f49441
  1. 8
      Source/gmenu.cpp

8
Source/gmenu.cpp

@ -351,7 +351,13 @@ bool gmenu_left_mouse(bool isDown)
return true;
}
sgpCurrItem = pItem;
PlaySFX(SfxID::MenuMove);
// Do not play a duplicate sound if we are clicking on the sound slider.
// CurrentMenuId == 5 is the options menu, i == 1 is the sound slider.
if ((sgCurrentMenuIdx != 5) || (i != 1)) {
PlaySFX(SfxID::MenuMove);
}
if (pItem->isSlider()) {
isDraggingSlider = GmenuMouseIsOverSlider();
gmenu_on_mouse_move();

Loading…
Cancel
Save