Skip to content

Commit 4cd919d

Browse files
committed
Skip processing dead notes
1 parent b99089d commit 4cd919d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/funkin/play/PlayState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2650,7 +2650,7 @@ class PlayState extends MusicBeatSubState
26502650
// Process notes on the opponent's side.
26512651
for (note in opponentStrumline.notes.members)
26522652
{
2653-
if (note == null) continue;
2653+
if (note == null || !note.alive) continue;
26542654
var r = GRhythmUtil.processWindow(note, false);
26552655
if (r.botplayHit)
26562656
{
@@ -2700,7 +2700,7 @@ class PlayState extends MusicBeatSubState
27002700
// Process notes on the player's side.
27012701
for (note in playerStrumline.notes.members)
27022702
{
2703-
if (note == null) continue;
2703+
if (note == null || !note.alive) continue;
27042704
var r = GRhythmUtil.processWindow(note, !isBotPlayMode);
27052705
if (r.botplayHit)
27062706
{

0 commit comments

Comments
 (0)