From a784c180a88ff5a4f21857de5f243610394e4ccc Mon Sep 17 00:00:00 2001 From: Reonu Date: Thu, 3 Nov 2022 00:36:59 +0100 Subject: [PATCH] Wrap boulder room check under vanilla specific level checks (#521) --- src/game/behaviors/boulder.inc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/behaviors/boulder.inc.c b/src/game/behaviors/boulder.inc.c index 6448c368..418d4e52 100644 --- a/src/game/behaviors/boulder.inc.c +++ b/src/game/behaviors/boulder.inc.c @@ -53,8 +53,12 @@ void bhv_big_boulder_generator_loop(void) { o->oTimer = 0; } +#ifdef ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS if (!current_mario_room_check(4) || is_point_within_radius_of_mario(o->oPosX, o->oPosY, o->oPosZ, 1500)) { +#else + if (is_point_within_radius_of_mario(o->oPosX, o->oPosY, o->oPosZ, 1500)) { +#endif return; }