mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Add threshold for horizontal tail angle
This commit is contained in:
parent
2838dc8f99
commit
f6be7fb698
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue