diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2023-11-27 20:04:54 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 20:04:54 +1100 |
| commit | c04aaab6a1d0bdaf6071fadc649385fd3e71e774 (patch) | |
| tree | 0ecf2ff0bd2282cc6b2844665dd527f60e2eca68 /src/code/z_play.c | |
| parent | 6dd16009361b2561f77b7933981611a9b975fa21 (diff) | |
Use `CURRENT_TIME` Macro (#1514)
* use CURRENT_TIME macro
* add comment
* cleanup brackets
Diffstat (limited to 'src/code/z_play.c')
| -rw-r--r-- | src/code/z_play.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_play.c b/src/code/z_play.c index ca4fb500d..83a2d25ce 100644 --- a/src/code/z_play.c +++ b/src/code/z_play.c @@ -2213,7 +2213,7 @@ void Play_Init(GameState* thisx) { gSaveContext.skyboxTime = gSaveContext.nextDayTime; } - if ((gSaveContext.save.time >= CLOCK_TIME(18, 0)) || (gSaveContext.save.time < CLOCK_TIME(6, 30))) { + if ((CURRENT_TIME >= CLOCK_TIME(18, 0)) || (CURRENT_TIME < CLOCK_TIME(6, 30))) { gSaveContext.save.isNight = true; } else { gSaveContext.save.isNight = false; |
