From 89d28c7b389753209589b87da8c1d6fd1210482d Mon Sep 17 00:00:00 2001 From: Ervan Lefevre Date: Sun, 1 Oct 2023 11:02:25 +0200 Subject: [PATCH] :rotating_light: Removes warning on bad cast --- nodes/player/player.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/player/player.gd b/nodes/player/player.gd index 2c7b81d..6d3fea8 100644 --- a/nodes/player/player.gd +++ b/nodes/player/player.gd @@ -202,12 +202,12 @@ func handle_sprite_orientation(): elif is_on_ceiling_only(): if velocity.x != 0: - $oriented_container.rotation = 0 if (velocity.x > 0) else PI + $oriented_container.rotation = 0.0 if (velocity.x > 0) else PI sprite.flip_v = velocity.x > 0 sprite.flip_h = false else: if velocity.x != 0: - $oriented_container.rotation = 0 if (velocity.x > 0) else PI + $oriented_container.rotation = 0.0 if (velocity.x > 0) else PI sprite.flip_v = velocity.x < 0 sprite.flip_h = false