mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Fix a bug where Miles would get stuck on ceiling
This commit is contained in:
parent
955203744c
commit
596b6a63bb
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
// if ascending and ysp < -1, turn on descent again
|
||||
if(player->spinrev && (player->vel.vy < -ONE))
|
||||
player->spinrev = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue