Skip to content

Commit

Permalink
health was only initialized in sprite, should have been in object
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamAtomic committed Aug 22, 2011
1 parent 1d398b3 commit 289486b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions org/flixel/FlxObject.as
Expand Up @@ -275,6 +275,8 @@ package org.flixel
height = Height;
mass = 1.0;
elasticity = 0.0;

health = 1;

immovable = false;
moves = true;
Expand Down
2 changes: 0 additions & 2 deletions org/flixel/FlxSprite.as
Expand Up @@ -166,8 +166,6 @@ package org.flixel
public function FlxSprite(X:Number=0,Y:Number=0,SimpleGraphic:Class=null)
{
super(X,Y);

health = 1;

_flashPoint = new Point();
_flashRect = new Rectangle();
Expand Down

0 comments on commit 289486b

Please sign in to comment.