mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Fix Tails angle when animation angle is zero
This commit is contained in:
parent
bedd278b52
commit
877ca1e5b4
1 changed files with 1 additions and 1 deletions
|
@ -1788,7 +1788,7 @@ player_draw(Player *player, VECTOR *pos)
|
||||||
else if(!moving_towards_dir) tail_angle = 0x000;
|
else if(!moving_towards_dir) tail_angle = 0x000;
|
||||||
else tail_angle = facing_left ? 0xe00 : 0x200;
|
else tail_angle = facing_left ? 0xe00 : 0x200;
|
||||||
} else tail_angle = 0x000;
|
} 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_x = (tail_distance * rcos(tail_angle)) >> 24;
|
||||||
int16_t tail_distance_y = (tail_distance * rsin(tail_angle)) >> 24;
|
int16_t tail_distance_y = (tail_distance * rsin(tail_angle)) >> 24;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue