summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAsier Núñez <45818936+Asiern@users.noreply.github.com>2025-11-16 17:42:37 +0100
committerGitHub <noreply@github.com>2025-11-16 11:42:37 -0500
commitda46df490d417aa5af57ebecd81149e316356d17 (patch)
tree47dc0533fe77cc2deef6e4c9037bf380ae02b22b /src
parent67eda440b0c079de4d09416778aa441765356a43 (diff)
feat(d_snd_harp_song_mrg): isPlayingHarpRelated and ancestors (#264)
* feat(d_snd_harp_song_mrg): isPlayingHarpRelated and ancestors * refactor(harp): change field_0x042 type to bool Updated field_0x042 from u8 to bool to better reflect its binary nature. Adjusted related logic accordingly. * refactor: rename fun_80381150 to fn_80381150 - Rename fn_80381150 to match real name - Reordered functions * feat: map symbols * reorder functions
Diffstat (limited to 'src')
-rw-r--r--src/d/snd/d_snd_harp_song_mgr.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/d/snd/d_snd_harp_song_mgr.cpp b/src/d/snd/d_snd_harp_song_mgr.cpp
index 6861b67e..f3b121fe 100644
--- a/src/d/snd/d_snd_harp_song_mgr.cpp
+++ b/src/d/snd/d_snd_harp_song_mgr.cpp
@@ -120,3 +120,18 @@ void dSndHarpSongMgr_c::resetFloatArr2() {
field_0x52C[i] = 0.0f;
}
}
+
+bool dSndHarpSongMgr_c::isContinuousStrumming() {
+ return field_0x01C;
+}
+
+bool dSndHarpSongMgr_c::isPlayingHarpRelated() {
+ return fn_80381150() == false;
+}
+
+bool dSndHarpSongMgr_c::fn_80381150() {
+ if (isContinuousStrumming()) {
+ return field_0x042;
+ }
+ return true;
+}