Skip to content

Commit

Permalink
remove implicit dir->int casts (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli authored Jan 30, 2025
1 parent a6ee996 commit fa6b5ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Platformers/Mode/source/Bullet.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Bullet extends FlxSprite
if (animation.finished)
exists = false;
}
else if (touching != 0)
else if (touching != NONE)
{
kill();
}
Expand Down
2 changes: 1 addition & 1 deletion Platformers/Mode/source/EnemyBullet.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class EnemyBullet extends FlxSprite
if (animation.finished)
exists = false;
}
else if (touching != 0)
else if (touching != NONE)
{
kill();
}
Expand Down
2 changes: 1 addition & 1 deletion Platformers/ProjectJumper/source/Bullet.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fa6b5ad

Please sign in to comment.