diff options
-rw-r--r-- | src/play_time.c | 10 | ||||
-rw-r--r-- | src/rng.c | 5 | ||||
-rw-r--r-- | src/task.c | 6 |
3 files changed, 9 insertions, 12 deletions
diff --git a/src/play_time.c b/src/play_time.c index 444c2c86c..27a57f28b 100644 --- a/src/play_time.c +++ b/src/play_time.c @@ -10,7 +10,7 @@ enum static u8 sPlayTimeCounterState; -void PlayTimeCounter_Reset() +void PlayTimeCounter_Reset(void) { sPlayTimeCounterState = STOPPED; @@ -20,7 +20,7 @@ void PlayTimeCounter_Reset() gSaveBlock2Ptr->playTimeVBlanks = 0; } -void PlayTimeCounter_Start() +void PlayTimeCounter_Start(void) { sPlayTimeCounterState = RUNNING; @@ -28,12 +28,12 @@ void PlayTimeCounter_Start() PlayTimeCounter_SetToMax(); } -void PlayTimeCounter_Stop() +void PlayTimeCounter_Stop(void) { sPlayTimeCounterState = STOPPED; } -void PlayTimeCounter_Update() +void PlayTimeCounter_Update(void) { if (sPlayTimeCounterState == RUNNING) { @@ -62,7 +62,7 @@ void PlayTimeCounter_Update() } } -void PlayTimeCounter_SetToMax() +void PlayTimeCounter_SetToMax(void) { sPlayTimeCounterState = MAXED_OUT; @@ -4,13 +4,10 @@ // The number 1103515245 comes from the example implementation of rand and srand // in the ISO C standard. -extern u32 gRngValue; -extern u32 gRng2Value; - EWRAM_DATA static u8 sUnknown = 0; EWRAM_DATA static u32 sRandCount = 0; -u16 Random() +u16 Random(void) { gRngValue = 1103515245 * gRngValue + 24691; sRandCount++; diff --git a/src/task.c b/src/task.c index 70dd6b292..fafa7c70d 100644 --- a/src/task.c +++ b/src/task.c @@ -9,7 +9,7 @@ struct Task gTasks[NUM_TASKS]; static void InsertTask(u8 newTaskId); static u8 FindFirstActiveTask(); -void ResetTasks() +void ResetTasks(void) { u8 i; @@ -110,7 +110,7 @@ void DestroyTask(u8 taskId) } } -void RunTasks() +void RunTasks(void) { u8 taskId = FindFirstActiveTask(); @@ -189,7 +189,7 @@ u8 FindTaskIdByFunc(TaskFunc func) return -1; } -u8 GetTaskCount() +u8 GetTaskCount(void) { u8 i; u8 count = 0; |