From 0221d4ddf05ea496549fe2b7524b0b0a2ee4b7b0 Mon Sep 17 00:00:00 2001 From: 1ted59 <24933689+1ted59@users.noreply.github.com> Date: Fri, 14 Jun 2024 16:16:10 -0400 Subject: [PATCH] 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. --- src/game/behaviors/coin.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/behaviors/coin.inc.c b/src/game/behaviors/coin.inc.c index 0162df33..ce3e70cb 100644 --- a/src/game/behaviors/coin.inc.c +++ b/src/game/behaviors/coin.inc.c @@ -131,7 +131,7 @@ void bhv_coin_loop(void) { } } - if (o->oVelY < 0) { + if (o->oVelY <= 0) { cur_obj_become_tangible(); }