diff options
author | YamaArashi <shadow962@live.com> | 2016-01-31 15:57:56 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-01-31 15:57:56 -0800 |
commit | 32ec0474b05b36e6b0ad0354ae0e91a3b69f5bc5 (patch) | |
tree | 42e2f427f4092d1b0f6ffcb2457b3453b4235519 /src | |
parent | b274bdf7d39a95fb9eca8dc67fc8bba0cb36b554 (diff) |
clean up play_time.c whitespace
Diffstat (limited to 'src')
-rw-r--r-- | src/play_time.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/play_time.c b/src/play_time.c index f11973d56..69633ca48 100644 --- a/src/play_time.c +++ b/src/play_time.c @@ -44,17 +44,17 @@ void PlayTimeCounter_Update() { gSaveBlock2.playTimeVBlanks = 0; gSaveBlock2.playTimeSeconds++; - + if (gSaveBlock2.playTimeSeconds > 59) { gSaveBlock2.playTimeSeconds = 0; gSaveBlock2.playTimeMinutes++; - + if (gSaveBlock2.playTimeMinutes > 59) { gSaveBlock2.playTimeMinutes = 0; gSaveBlock2.playTimeHours++; - + if (gSaveBlock2.playTimeHours > 999) PlayTimeCounter_SetToMax(); } @@ -66,6 +66,7 @@ void PlayTimeCounter_Update() void PlayTimeCounter_SetToMax() { gPlayTimeCounterState = MAXED_OUT; + gSaveBlock2.playTimeHours = 999; gSaveBlock2.playTimeMinutes = 59; gSaveBlock2.playTimeSeconds = 59; |