Changed memory calculation and fixed gc not being reenabled after death

This commit is contained in:
AirDog46
2025-05-18 12:55:53 +03:00
parent 903970c542
commit 0e56a7336b
4 changed files with 16 additions and 10 deletions

View File

@@ -23,10 +23,6 @@ class GameOverState extends FlxTransitionableState
override function create()
{
if (!FlxG.save.data.GC) {
Gc.enable(true);
trace("Player died. We can reenable the garbage collector");
}
var loser:FlxSprite = new FlxSprite(100, 100);
var loseTex = Paths.getSparrowAtlas('lose');
loser.frames = loseTex;