From 126f92513b5691863d7d372519ddb8eb306d0f30 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 26 Feb 2022 00:01:40 -0800 Subject: [PATCH] Update credits --- credits.txt | 1 + src/game/behaviors/boulder.inc.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/credits.txt b/credits.txt index daac4bbd..978ec6ab 100644 --- a/credits.txt +++ b/credits.txt @@ -26,6 +26,7 @@ Contributors: Llennpie LuigiNoodle PeachyPeach + PoltixeTheDerg s4ys sm64rise snuffysasa diff --git a/src/game/behaviors/boulder.inc.c b/src/game/behaviors/boulder.inc.c index beddd0b7..08fe0ad5 100644 --- a/src/game/behaviors/boulder.inc.c +++ b/src/game/behaviors/boulder.inc.c @@ -24,6 +24,11 @@ void boulder_act_1(void) { if (o->oPosY < -1000.0f) o->activeFlags = ACTIVE_FLAG_DEACTIVATED; + + if (o->oBehParams2ndByte == 2 && (sp1E & OBJ_COL_FLAG_HIT_WALL)) { + o->activeFlags = ACTIVE_FLAG_DEACTIVATED; + obj_explode_and_spawn_coins(46.0f, 1); + } } void bhv_big_boulder_loop(void) {