mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Make Miles always tire as long as he's flying
This commit is contained in:
parent
deda966b6e
commit
63d7acb006
1 changed files with 1 additions and 2 deletions
|
@ -1165,8 +1165,7 @@ player_update(Player *player)
|
||||||
}
|
}
|
||||||
} else if(player->action == ACTION_FLY) {
|
} else if(player->action == ACTION_FLY) {
|
||||||
if(player->framecount < PLAYER_FLY_MAXFRAMES) {
|
if(player->framecount < PLAYER_FLY_MAXFRAMES) {
|
||||||
if(player->vel.vy <= 0)
|
player->framecount++;
|
||||||
player->framecount++;
|
|
||||||
|
|
||||||
// spinrev is a flight state. 1 is ascent, 0 is descent.
|
// spinrev is a flight state. 1 is ascent, 0 is descent.
|
||||||
// This state affects gravity, so we're OK with the speed here
|
// This state affects gravity, so we're OK with the speed here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue