Fix a bug where Miles would get stuck on ceiling

This commit is contained in:
Lucas S. Vieira 2025-04-09 17:03:28 -03:00
parent 955203744c
commit 596b6a63bb

View file

@ -1072,10 +1072,11 @@ player_update(Player *player)
if(input_pressed(&player->input, PAD_CROSS)) {
player->spinrev = 1;
}
// Ceiling collision
if(player->ceil) player->spinrev = 0;
}
// Ceiling collision
if(player->ceil) player->spinrev = 0;
// if ascending and ysp < -1, turn on descent again
if(player->spinrev && (player->vel.vy < -ONE))
player->spinrev = 0;