diff options
| author | nclok1405 <155463060+nclok1405@users.noreply.github.com> | 2025-12-04 11:15:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-03 19:15:49 -0700 |
| commit | 098cb7046059445c3dcfb2ff9e568a858f3384a1 (patch) | |
| tree | 8023f3cb8f3b9f8ae9de57c1c9628158f981c6a8 /soh/src/code | |
| parent | 9401d4fd712cc4b99537b37940881e9e1a7f61b6 (diff) | |
Disable Screen Flash for Finishing Blow option (#5988)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_play.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/soh/src/code/z_play.c b/soh/src/code/z_play.c index b1a714dcb..89583e598 100644 --- a/soh/src/code/z_play.c +++ b/soh/src/code/z_play.c @@ -1180,15 +1180,17 @@ void Play_Update(PlayState* play) { } if (play->actorCtx.freezeFlashTimer && (play->actorCtx.freezeFlashTimer-- < 5)) { - osSyncPrintf("FINISH=%d\n", play->actorCtx.freezeFlashTimer); - - if ((play->actorCtx.freezeFlashTimer > 0) && ((play->actorCtx.freezeFlashTimer % 2) != 0)) { - play->envCtx.fillScreen = true; - play->envCtx.screenFillColor[0] = play->envCtx.screenFillColor[1] = - play->envCtx.screenFillColor[2] = 150; - play->envCtx.screenFillColor[3] = 80; - } else { - play->envCtx.fillScreen = false; + if (GameInteractor_Should(VB_FLASH_SCREEN_FOR_FINISHING_BLOW, true)) { + osSyncPrintf("FINISH=%d\n", play->actorCtx.freezeFlashTimer); + + if ((play->actorCtx.freezeFlashTimer > 0) && ((play->actorCtx.freezeFlashTimer % 2) != 0)) { + play->envCtx.fillScreen = true; + play->envCtx.screenFillColor[0] = play->envCtx.screenFillColor[1] = + play->envCtx.screenFillColor[2] = 150; + play->envCtx.screenFillColor[3] = 80; + } else { + play->envCtx.fillScreen = false; + } } } else { PLAY_LOG(3606); |
