diff options
| author | djevangelia <263709373+djevangelia@users.noreply.github.com> | 2026-07-03 20:14:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-03 18:14:01 +0000 |
| commit | 2385603496cd104262ee40e44fc78a4ed64c9562 (patch) | |
| tree | 51f3c39138c8c577b99ecf2e8dc454043cd2b321 | |
| parent | 7effe28911a4449bc236e8d1db12f5725137171c (diff) | |
Bugfix, add Dodongo fire in enemy randomizer (#6855)
| -rw-r--r-- | soh/src/overlays/effects/ovl_Effect_Ss_D_Fire/z_eff_ss_d_fire.c | 5 |
1 files 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 3ded89d2c..0ec7e58df 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; |
