Skip to content

Commit f2a18c2

Browse files
committed
Slightly Updated Sprit Char Script
o k
1 parent 6c81260 commit f2a18c2

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

scripts/characters/spirit-remnants.hxc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,8 @@ class SpiritRemnantsCharacter extends PackerCharacter
2424

2525
function addToStage(sprite:FlxSprite)
2626
{
27-
if (this.debug)
28-
{
29-
// We are in the chart editor or something.
30-
FlxG.stage.add(sprite);
31-
}
32-
else
33-
{
34-
PlayState.instance.currentStage.add(sprite);
35-
}
27+
if (this.debug) return;
28+
29+
currentStage.add(sprite);
3630
}
3731
}

0 commit comments

Comments
 (0)