Skip to content

Commit 51df643

Browse files
committed
leap sfx only at full charge
1 parent c6705a1 commit 51df643

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else()
88
endif()
99
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
1010

11-
project(HorribleMenu VERSION 1.2.3)
11+
project(HorribleMenu VERSION 1.2.4)
1212

1313
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.cpp)
1414
add_library(${PROJECT_NAME} SHARED ${SOURCES})

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v1.2.4
2+
- Sound effect for *Charged Leap* option will now only play when leaping at full charge
3+
14
# v1.2.3
25
- Rework game modification internals to allow safer option toggling mid-level
36
- This should reduce crash issues with *Flicks* option

src/hooks/mechanics/Leap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class $modify(LeapGJBaseGameLayer, GJBaseGameLayer) {
110110

111111
GJBaseGameLayer::handleButton(true, button, isPlayer1);
112112

113-
sfx::play(sfx::file::pop);
113+
if (f->charge >= 100.f) sfx::play(sfx::file::pop);
114114

115115
schedule(schedule_selector(LeapGJBaseGameLayer::decharge));
116116

0 commit comments

Comments
 (0)