Skip to content

Commit fa6b5ad

Browse files
authored
remove implicit dir->int casts (#376)
1 parent a6ee996 commit fa6b5ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Platformers/Mode/source/Bullet.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Bullet extends FlxSprite
3535
if (animation.finished)
3636
exists = false;
3737
}
38-
else if (touching != 0)
38+
else if (touching != NONE)
3939
{
4040
kill();
4141
}

Platformers/Mode/source/EnemyBullet.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EnemyBullet extends FlxSprite
2525
if (animation.finished)
2626
exists = false;
2727
}
28-
else if (touching != 0)
28+
else if (touching != NONE)
2929
{
3030
kill();
3131
}

Platformers/ProjectJumper/source/Bullet.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Bullet extends FlxSprite
3232
// If the bullet makes it 64 pixels off the side of the screen, kill it
3333
kill();
3434
}
35-
else if (touching != 0)
35+
else if (touching != NONE)
3636
{
3737
// We want the bullet to go away when it hits something, not just stop.
3838
kill();

0 commit comments

Comments
 (0)