diff options
Diffstat (limited to 'game/player/PlayerBulletScript.cpp')
-rw-r--r-- | game/player/PlayerBulletScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/player/PlayerBulletScript.cpp b/game/player/PlayerBulletScript.cpp index e1637c2..50b6617 100644 --- a/game/player/PlayerBulletScript.cpp +++ b/game/player/PlayerBulletScript.cpp @@ -20,7 +20,7 @@ void PlayerBulletScript::fixed_update(crepe::duration_t dt){ vec2 half_screen = camera.viewport_size / 2; float despawn_location = cam_transform.position.x + half_screen.x + 50; - if(transform.position.x < despawn_location){ + if(transform.position.x > despawn_location){ this->despawn_bullet(); } } |