+21
-21
@@ -35,31 +35,31 @@ void PlayTimeCounter_Stop(void)
|
|||||||
|
|
||||||
void PlayTimeCounter_Update(void)
|
void PlayTimeCounter_Update(void)
|
||||||
{
|
{
|
||||||
if (sPlayTimeCounterState == RUNNING)
|
if (sPlayTimeCounterState != RUNNING)
|
||||||
{
|
return;
|
||||||
gSaveBlock2Ptr->playTimeVBlanks++;
|
|
||||||
|
|
||||||
if (gSaveBlock2Ptr->playTimeVBlanks > 59)
|
gSaveBlock2Ptr->playTimeVBlanks++;
|
||||||
{
|
|
||||||
gSaveBlock2Ptr->playTimeVBlanks = 0;
|
|
||||||
gSaveBlock2Ptr->playTimeSeconds++;
|
|
||||||
|
|
||||||
if (gSaveBlock2Ptr->playTimeSeconds > 59)
|
if (gSaveBlock2Ptr->playTimeVBlanks < 60)
|
||||||
{
|
return;
|
||||||
gSaveBlock2Ptr->playTimeSeconds = 0;
|
|
||||||
gSaveBlock2Ptr->playTimeMinutes++;
|
|
||||||
|
|
||||||
if (gSaveBlock2Ptr->playTimeMinutes > 59)
|
gSaveBlock2Ptr->playTimeVBlanks = 0;
|
||||||
{
|
gSaveBlock2Ptr->playTimeSeconds++;
|
||||||
gSaveBlock2Ptr->playTimeMinutes = 0;
|
|
||||||
gSaveBlock2Ptr->playTimeHours++;
|
|
||||||
|
|
||||||
if (gSaveBlock2Ptr->playTimeHours > 999)
|
if (gSaveBlock2Ptr->playTimeSeconds < 60)
|
||||||
PlayTimeCounter_SetToMax();
|
return;
|
||||||
}
|
|
||||||
}
|
gSaveBlock2Ptr->playTimeSeconds = 0;
|
||||||
}
|
gSaveBlock2Ptr->playTimeMinutes++;
|
||||||
}
|
|
||||||
|
if (gSaveBlock2Ptr->playTimeMinutes < 60)
|
||||||
|
return;
|
||||||
|
|
||||||
|
gSaveBlock2Ptr->playTimeMinutes = 0;
|
||||||
|
gSaveBlock2Ptr->playTimeHours++;
|
||||||
|
|
||||||
|
if (gSaveBlock2Ptr->playTimeHours > 999)
|
||||||
|
PlayTimeCounter_SetToMax();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlayTimeCounter_SetToMax(void)
|
void PlayTimeCounter_SetToMax(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user