Add threshold for horizontal tail angle

This commit is contained in:
Lucas S. Vieira 2025-04-07 20:48:07 -03:00
parent 2838dc8f99
commit f6be7fb698

View file

@ -1387,7 +1387,7 @@ player_draw(Player *player, VECTOR *pos)
int32_t tail_angle = anim_angle;
if(!player->grnd) {
if(player->vel.vx == 0) {
if(abs(player->vel.vx) <= player->cnst->x_min_roll_spd) {
if(player->vel.vy < 0) {
tail_angle = facing_left ? 0x400 : 0xc00;
} else tail_angle = facing_left ? 0xc00 : 0x400;