🚨 Removes warning on bad cast

main
Ervan Lefevre 2 years ago
parent 343c0865ba
commit 89d28c7b38
  1. 4
      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

Loading…
Cancel
Save