Fix spawned coins not being collectible until after the peak of their arc (#806)

If a spawned coin lands on the same frame it hits the peak of its arc, it will never have vertical speed < 0, so it will never be collectible.

Making this also set the coin to tangible if it has 0 speed fixes this issue.
This commit is contained in:
1ted59
2024-06-14 16:16:10 -04:00
committed by GitHub
parent dcd58b2aad
commit 0221d4ddf0

View File

@@ -131,7 +131,7 @@ void bhv_coin_loop(void) {
}
}
if (o->oVelY < 0) {
if (o->oVelY <= 0) {
cur_obj_become_tangible();
}