From 877ca1e5b45649275b99df81bc6793e2a71971b9 Mon Sep 17 00:00:00 2001 From: "Lucas S. Vieira" Date: Thu, 17 Apr 2025 02:13:19 -0300 Subject: [PATCH] Fix Tails angle when animation angle is zero --- src/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index c1f5064..ba6856e 100644 --- a/src/player.c +++ b/src/player.c @@ -1788,7 +1788,7 @@ player_draw(Player *player, VECTOR *pos) else if(!moving_towards_dir) tail_angle = 0x000; else tail_angle = facing_left ? 0xe00 : 0x200; } else tail_angle = 0x000; - } + } else if(is_zero_angle) tail_angle = 0x000; int16_t tail_distance_x = (tail_distance * rcos(tail_angle)) >> 24; int16_t tail_distance_y = (tail_distance * rsin(tail_angle)) >> 24;