From fa6b5adf3746df3b97649c8d4ec194f97736926a Mon Sep 17 00:00:00 2001 From: George Kurelic Date: Thu, 30 Jan 2025 10:17:39 -0600 Subject: [PATCH] remove implicit dir->int casts (#376) --- Platformers/Mode/source/Bullet.hx | 2 +- Platformers/Mode/source/EnemyBullet.hx | 2 +- Platformers/ProjectJumper/source/Bullet.hx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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();