Skip to content

Commit a7cdc14

Browse files
committed
Update PlayField.hx
1 parent b3fd99e commit a7cdc14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/objects/playfields/PlayField.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class PlayField extends FlxTypedGroup<FlxBasic>
228228
}
229229

230230
// destroys a note
231-
public function removeNote(daNote:Note){
231+
public function removeNote(daNote:Note, ?killTail:Bool = false){
232232
daNote.active = false;
233233
daNote.visible = false;
234234
daNote.kill();
@@ -249,6 +249,7 @@ class PlayField extends FlxTypedGroup<FlxBasic>
249249
if (noteQueue[daNote.column] != null)
250250
noteQueue[daNote.column].remove(daNote);
251251

252+
if (killTail)
252253
if (daNote.unhitTail.length > 0)
253254
while (daNote.unhitTail.length > 0)
254255
removeNote(daNote.unhitTail.shift());

0 commit comments

Comments
 (0)