Make Miles always tire as long as he's flying

This commit is contained in:
Lucas S. Vieira 2025-04-14 21:08:47 -03:00
parent deda966b6e
commit 63d7acb006

View file

@ -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