diff options
author | YamaArashi <shadow962@live.com> | 2016-09-25 12:06:59 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-09-25 12:06:59 -0700 |
commit | a5727f581bb76e0a2240f3a352204689d18a25e2 (patch) | |
tree | 077c23ac87136164b76739af1aaf7530d1575c90 /src/play_time.c | |
parent | 012896c6d89e9ced8c712edfe32595fd81c27882 (diff) |
define more variables in C
Diffstat (limited to 'src/play_time.c')
-rw-r--r-- | src/play_time.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/play_time.c b/src/play_time.c index f950e31a5..4eabf38cc 100644 --- a/src/play_time.c +++ b/src/play_time.c @@ -8,13 +8,13 @@ enum MAXED_OUT }; -extern u8 gPlayTimeCounterState; +static u8 sPlayTimeCounterState; void PlayTimeCounter_SetToMax(); void PlayTimeCounter_Reset() { - gPlayTimeCounterState = STOPPED; + sPlayTimeCounterState = STOPPED; gSaveBlock2.playTimeHours = 0; gSaveBlock2.playTimeMinutes = 0; @@ -24,7 +24,7 @@ void PlayTimeCounter_Reset() void PlayTimeCounter_Start() { - gPlayTimeCounterState = RUNNING; + sPlayTimeCounterState = RUNNING; if (gSaveBlock2.playTimeHours > 999) PlayTimeCounter_SetToMax(); @@ -32,12 +32,12 @@ void PlayTimeCounter_Start() void PlayTimeCounter_Stop() { - gPlayTimeCounterState = STOPPED; + sPlayTimeCounterState = STOPPED; } void PlayTimeCounter_Update() { - if (gPlayTimeCounterState == RUNNING) + if (sPlayTimeCounterState == RUNNING) { gSaveBlock2.playTimeVBlanks++; @@ -66,7 +66,7 @@ void PlayTimeCounter_Update() void PlayTimeCounter_SetToMax() { - gPlayTimeCounterState = MAXED_OUT; + sPlayTimeCounterState = MAXED_OUT; gSaveBlock2.playTimeHours = 999; gSaveBlock2.playTimeMinutes = 59; |