Skip to content

Commit

Permalink
Fix double bass
Browse files Browse the repository at this point in the history
Forgot that I need to actually call the original function, lol
  • Loading branch information
ihatecompvir committed Jun 25, 2024
1 parent 98e734d commit 168777c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/SongParserHooks.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
RB3Enhanced - SongHooks.c
RB3Enhanced - SongParserHooks.c
Hooks related to the parsing of song MIDIs.
*/

Expand All @@ -12,7 +12,9 @@
int SongParserPitchToSlotHook(SongParser *thisSongParser, int pitch, int *difficulty, int tick)
{
Modifier *doubleBassModifier;
int ret;

ret = SongParserPitchToSlot(thisSongParser, pitch, difficulty, tick);
doubleBassModifier = ModifierActive(*(int *)PORT_MODIFIERMGR_POINTER, globalSymbols.doubleBass, 0);

// only read the notes when double bass pedal modifier is on
Expand All @@ -35,5 +37,5 @@ int SongParserPitchToSlotHook(SongParser *thisSongParser, int pitch, int *diffic
}
}

return SongParserPitchToSlot(thisSongParser, pitch, difficulty, tick);
return ret;
}

0 comments on commit 168777c

Please sign in to comment.