diff options
| author | Jasper St. Pierre <jstpierre@mecheye.net> | 2024-07-13 15:58:17 -0700 |
|---|---|---|
| committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2024-07-13 15:58:17 -0700 |
| commit | 2a65dfdb6ee01627ce79129c758bb793306438ea (patch) | |
| tree | a1910d0005b8e76429223fd81ddcfcc93eb330e7 /src/d/d_s_play.cpp | |
| parent | 18b82cdc5a29a407af044ed7572dbd4bbcf64f9e (diff) | |
d_ovlp_fade4 work
Diffstat (limited to 'src/d/d_s_play.cpp')
| -rw-r--r-- | src/d/d_s_play.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/d/d_s_play.cpp b/src/d/d_s_play.cpp index e941cffc..17684ccc 100644 --- a/src/d/d_s_play.cpp +++ b/src/d/d_s_play.cpp @@ -316,17 +316,17 @@ static int dScnPly_Draw(dScnPly_ply_c* i_this) { fopScnM_ChangeReq(i_this, PROC_PLAY_SCENE, l_wipeType[dComIfGp_getNextStageWipe()], 5); int hour = dKy_getdaytime_hour(); - BOOL useWhiteColor = FALSE; + BOOL isNight = FALSE; if (dKy_checkEventNightStop()) { - useWhiteColor = TRUE; + isNight = TRUE; } else { - useWhiteColor = (hour >= 6 && hour < 18) ? FALSE : TRUE; + isNight = (hour >= 6 && hour < 18) ? FALSE : TRUE; } if (dComIfGp_getNextStageWipe() == 1 || dComIfGp_getNextStageWipe() == 2 || dComIfGp_getNextStageWipe() == 7 || - ((dComIfGp_getNextStageWipe() == 8 || dComIfGp_getNextStageWipe() == 10) && useWhiteColor) || - ((dComIfGp_getNextStageWipe() == 9 || dComIfGp_getNextStageWipe() == 11) && !useWhiteColor)) + ((dComIfGp_getNextStageWipe() == 8 || dComIfGp_getNextStageWipe() == 10) && isNight) || + ((dComIfGp_getNextStageWipe() == 9 || dComIfGp_getNextStageWipe() == 11) && !isNight)) { mDoGph_gInf_c::setFadeColor(*(JUtility::TColor*)&g_saftyWhiteColor); // Fakematch? } else { |
