Fix graphic destroying (EXPERIMENTAL)

This commit is contained in:
NeeEoo
2023-10-13 15:10:23 +02:00
parent 8b1a40e552
commit 0844ea4481
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -169,6 +169,8 @@
<haxedef name="SOFTCODED_CLASSES" if="SOFTCODED_CLASSES" />
<haxedef name="openfl_dpi_aware" if="openfl_dpi_aware" />
<haxedef name="EXPERIMENTAL_FLXGRAPHIC_DESTROY_FIX" />
<!-- _______________________________ Libraries ______________________________ -->
<haxelib name="flixel" />
+2 -2
View File
@@ -1527,7 +1527,7 @@ class PlayState extends MusicBeatState
rating.velocity.y -= FlxG.random.int(140, 175);
rating.velocity.x -= FlxG.random.int(0, 10);
if (evt != null) {
rating.scale.set(evt.ratingScale,evt.ratingScale);
rating.scale.set(evt.ratingScale, evt.ratingScale);
rating.antialiasing = evt.ratingAntialiasing;
}
rating.updateHitbox();
@@ -1543,7 +1543,7 @@ class PlayState extends MusicBeatState
public function displayCombo(?evt:NoteHitEvent = null):Void {
var pre:String = evt != null ? evt.ratingPrefix : "";
var suf:String = evt != null ? evt.ratingSuffix : "";
var separatedScore:String = Std.string(combo).addZeros(3);
if (combo == 0 || combo >= 10) {