() to (void)
This commit is contained in:
+5
-5
@@ -10,7 +10,7 @@ enum
|
|||||||
|
|
||||||
static u8 sPlayTimeCounterState;
|
static u8 sPlayTimeCounterState;
|
||||||
|
|
||||||
void PlayTimeCounter_Reset()
|
void PlayTimeCounter_Reset(void)
|
||||||
{
|
{
|
||||||
sPlayTimeCounterState = STOPPED;
|
sPlayTimeCounterState = STOPPED;
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ void PlayTimeCounter_Reset()
|
|||||||
gSaveBlock2Ptr->playTimeVBlanks = 0;
|
gSaveBlock2Ptr->playTimeVBlanks = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlayTimeCounter_Start()
|
void PlayTimeCounter_Start(void)
|
||||||
{
|
{
|
||||||
sPlayTimeCounterState = RUNNING;
|
sPlayTimeCounterState = RUNNING;
|
||||||
|
|
||||||
@@ -28,12 +28,12 @@ void PlayTimeCounter_Start()
|
|||||||
PlayTimeCounter_SetToMax();
|
PlayTimeCounter_SetToMax();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlayTimeCounter_Stop()
|
void PlayTimeCounter_Stop(void)
|
||||||
{
|
{
|
||||||
sPlayTimeCounterState = STOPPED;
|
sPlayTimeCounterState = STOPPED;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlayTimeCounter_Update()
|
void PlayTimeCounter_Update(void)
|
||||||
{
|
{
|
||||||
if (sPlayTimeCounterState == RUNNING)
|
if (sPlayTimeCounterState == RUNNING)
|
||||||
{
|
{
|
||||||
@@ -62,7 +62,7 @@ void PlayTimeCounter_Update()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlayTimeCounter_SetToMax()
|
void PlayTimeCounter_SetToMax(void)
|
||||||
{
|
{
|
||||||
sPlayTimeCounterState = MAXED_OUT;
|
sPlayTimeCounterState = MAXED_OUT;
|
||||||
|
|
||||||
|
|||||||
@@ -4,13 +4,10 @@
|
|||||||
// The number 1103515245 comes from the example implementation of rand and srand
|
// The number 1103515245 comes from the example implementation of rand and srand
|
||||||
// in the ISO C standard.
|
// in the ISO C standard.
|
||||||
|
|
||||||
extern u32 gRngValue;
|
|
||||||
extern u32 gRng2Value;
|
|
||||||
|
|
||||||
EWRAM_DATA static u8 sUnknown = 0;
|
EWRAM_DATA static u8 sUnknown = 0;
|
||||||
EWRAM_DATA static u32 sRandCount = 0;
|
EWRAM_DATA static u32 sRandCount = 0;
|
||||||
|
|
||||||
u16 Random()
|
u16 Random(void)
|
||||||
{
|
{
|
||||||
gRngValue = 1103515245 * gRngValue + 24691;
|
gRngValue = 1103515245 * gRngValue + 24691;
|
||||||
sRandCount++;
|
sRandCount++;
|
||||||
|
|||||||
+3
-3
@@ -9,7 +9,7 @@ struct Task gTasks[NUM_TASKS];
|
|||||||
static void InsertTask(u8 newTaskId);
|
static void InsertTask(u8 newTaskId);
|
||||||
static u8 FindFirstActiveTask();
|
static u8 FindFirstActiveTask();
|
||||||
|
|
||||||
void ResetTasks()
|
void ResetTasks(void)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
|
|
||||||
@@ -110,7 +110,7 @@ void DestroyTask(u8 taskId)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void RunTasks()
|
void RunTasks(void)
|
||||||
{
|
{
|
||||||
u8 taskId = FindFirstActiveTask();
|
u8 taskId = FindFirstActiveTask();
|
||||||
|
|
||||||
@@ -189,7 +189,7 @@ u8 FindTaskIdByFunc(TaskFunc func)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 GetTaskCount()
|
u8 GetTaskCount(void)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
u8 count = 0;
|
u8 count = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user