diff --git a/Platformers/Mode/source/Bullet.hx b/Platformers/Mode/source/Bullet.hx index ecce0e2df..8752eb633 100644 --- a/Platformers/Mode/source/Bullet.hx +++ b/Platformers/Mode/source/Bullet.hx @@ -35,7 +35,7 @@ class Bullet extends FlxSprite if (animation.finished) exists = false; } - else if (touching != 0) + else if (touching != NONE) { kill(); } diff --git a/Platformers/Mode/source/EnemyBullet.hx b/Platformers/Mode/source/EnemyBullet.hx index c4099d86b..8e7cd036a 100644 --- a/Platformers/Mode/source/EnemyBullet.hx +++ b/Platformers/Mode/source/EnemyBullet.hx @@ -25,7 +25,7 @@ class EnemyBullet extends FlxSprite if (animation.finished) exists = false; } - else if (touching != 0) + else if (touching != NONE) { kill(); } diff --git a/Platformers/ProjectJumper/source/Bullet.hx b/Platformers/ProjectJumper/source/Bullet.hx index d21549106..eda50c817 100644 --- a/Platformers/ProjectJumper/source/Bullet.hx +++ b/Platformers/ProjectJumper/source/Bullet.hx @@ -32,7 +32,7 @@ class Bullet extends FlxSprite // If the bullet makes it 64 pixels off the side of the screen, kill it kill(); } - else if (touching != 0) + else if (touching != NONE) { // We want the bullet to go away when it hits something, not just stop. kill();