From 2385603496cd104262ee40e44fc78a4ed64c9562 Mon Sep 17 00:00:00 2001 From: djevangelia <263709373+djevangelia@users.noreply.github.com> Date: Fri, 3 Jul 2026 20:14:01 +0200 Subject: [PATCH] Bugfix, add Dodongo fire in enemy randomizer (#6855) --- .../overlays/effects/ovl_Effect_Ss_D_Fire/z_eff_ss_d_fire.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/soh/src/overlays/effects/ovl_Effect_Ss_D_Fire/z_eff_ss_d_fire.c b/soh/src/overlays/effects/ovl_Effect_Ss_D_Fire/z_eff_ss_d_fire.c index 3ded89d2cd..0ec7e58dfe 100644 --- a/soh/src/overlays/effects/ovl_Effect_Ss_D_Fire/z_eff_ss_d_fire.c +++ b/soh/src/overlays/effects/ovl_Effect_Ss_D_Fire/z_eff_ss_d_fire.c @@ -31,7 +31,7 @@ u32 EffectSsDFire_Init(PlayState* play, u32 index, EffectSs* this, void* initPar EffectSsDFireInitParams* initParams = (EffectSsDFireInitParams*)initParamsx; s32 objBankIndex = Object_GetIndex(&play->objectCtx, OBJECT_DODONGO); - if (objBankIndex >= 0) { + if (objBankIndex >= 0 || CVarGetInteger(CVAR_ENHANCEMENT("RandomizedEnemies"), false)) { this->pos = initParams->pos; this->velocity = initParams->velocity; this->accel = initParams->accel; @@ -73,7 +73,8 @@ void EffectSsDFire_Draw(PlayState* play, u32 index, EffectSs* this) { OPEN_DISPS(gfxCtx); - if (Object_GetIndex(&play->objectCtx, OBJECT_DODONGO) > -1) { + if (Object_GetIndex(&play->objectCtx, OBJECT_DODONGO) > -1 || + CVarGetInteger(CVAR_ENHANCEMENT("RandomizedEnemies"), false)) { gSegments[6] = VIRTUAL_TO_PHYSICAL(object); gSPSegment(POLY_XLU_DISP++, 0x06, object); scale = this->rScale / 100.0f;