summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--constants/wram_constants.asm4
-rw-r--r--data/engine_flags.asm4
-rwxr-xr-xengine/intro_menu.asm4
-rwxr-xr-xengine/main_menu.asm2
-rw-r--r--engine/scripting.asm4
-rw-r--r--home/game_time.asm2
-rw-r--r--mobile/mobile_22.asm6
-rw-r--r--mobile/mobile_40.asm6
-rw-r--r--wram.asm3
9 files changed, 20 insertions, 15 deletions
diff --git a/constants/wram_constants.asm b/constants/wram_constants.asm
index 422334e47..15846d896 100644
--- a/constants/wram_constants.asm
+++ b/constants/wram_constants.asm
@@ -16,6 +16,10 @@ AUTO_INPUT EQU $ff
const TEMPMON ; 3
const WILDMON ; 4
+; wGameTimerPause:: ; cfbc
+GAMETIMERPAUSE_TIMER_PAUSED_F EQU 0
+GAMETIMERPAUSE_MOBILE_7_F EQU 7
+
; Options:: ; cfcc
const_value set 4
const NO_TEXT_SCROLL ; 4
diff --git a/data/engine_flags.asm b/data/engine_flags.asm
index ac46cad4c..261d38d7f 100644
--- a/data/engine_flags.asm
+++ b/data/engine_flags.asm
@@ -122,10 +122,10 @@ EngineFlags: ; 80462
engine_flag wWeeklyFlags, WEEKLYFLAGS_DAILY_MOVE_TUTOR_F
engine_flag wWeeklyFlags, WEEKLYFLAGS_BUENAS_PASSWORD_F
- engine_flag wSwarmFlags, SWARMFLAGS_BUENAS_PASSWORD_F
+ engine_flag wSwarmFlags, SWARMFLAGS_BUENAS_PASSWORD_F ; $60
engine_flag wSwarmFlags, SWARMFLAGS_GOLDENROD_DEPT_STORE_SALE_F
- engine_flag wGameTimerPause, 7 ; $62
+ engine_flag wGameTimerPause, GAMETIMERPAUSE_MOBILE_7_F
engine_flag wPlayerGender, PLAYERGENDER_FEMALE_F
diff --git a/engine/intro_menu.asm b/engine/intro_menu.asm
index a99303cf0..e8a3f221a 100755
--- a/engine/intro_menu.asm
+++ b/engine/intro_menu.asm
@@ -484,8 +484,8 @@ FinishContinueFunction: ; 5e5d
ld [wDontPlayMapMusicOnReload], a
ld [wLinkMode], a
ld hl, wGameTimerPause
- set 0, [hl]
- res 7, [hl]
+ set GAMETIMERPAUSE_TIMER_PAUSED_F, [hl]
+ res GAMETIMERPAUSE_MOBILE_7_F, [hl]
ld hl, wEnteredMapFromContinue
set 1, [hl]
farcall OverworldLoop
diff --git a/engine/main_menu.asm b/engine/main_menu.asm
index 3bb3a6293..ff2d187d2 100755
--- a/engine/main_menu.asm
+++ b/engine/main_menu.asm
@@ -10,7 +10,7 @@ MainMenu: ; 49cdc
call GetSGBLayout
call SetPalettes
ld hl, wGameTimerPause
- res 0, [hl]
+ res GAMETIMERPAUSE_TIMER_PAUSED_F, [hl]
call MainMenu_GetWhichMenu
ld [wWhichIndexSet], a
call MainMenu_PrintCurrentTimeAndDay
diff --git a/engine/scripting.asm b/engine/scripting.asm
index 1ecdc016c..a3c906a83 100644
--- a/engine/scripting.asm
+++ b/engine/scripting.asm
@@ -2804,12 +2804,12 @@ Script_halloffame:
; script command 0xa1
ld hl, wGameTimerPause
- res 0, [hl]
+ res GAMETIMERPAUSE_TIMER_PAUSED_F, [hl]
farcall StubbedTrainerRankings_HallOfFame
farcall StubbedTrainerRankings_HallOfFame2
farcall HallOfFame
ld hl, wGameTimerPause
- set 0, [hl]
+ set GAMETIMERPAUSE_TIMER_PAUSED_F, [hl]
jr ReturnFromCredits
Script_credits:
diff --git a/home/game_time.asm b/home/game_time.asm
index 36dcaa282..14edda452 100644
--- a/home/game_time.asm
+++ b/home/game_time.asm
@@ -39,7 +39,7 @@ UpdateGameTimer:: ; 20ad
; Is the timer paused?
ld hl, wGameTimerPause
- bit 0, [hl]
+ bit GAMETIMERPAUSE_TIMER_PAUSED_F, [hl]
ret z
; Is the timer already capped?
diff --git a/mobile/mobile_22.asm b/mobile/mobile_22.asm
index e96fd1e8f..779d8964b 100644
--- a/mobile/mobile_22.asm
+++ b/mobile/mobile_22.asm
@@ -26,17 +26,17 @@ OpenSRAMBank4: ; 89160
Function89168: ; 89168 (22:5168)
ld hl, wGameTimerPause
- set 7, [hl]
+ set GAMETIMERPAUSE_MOBILE_7_F, [hl]
ret
Function8916e: ; 8916e (22:516e)
ld hl, wGameTimerPause
- res 7, [hl]
+ res GAMETIMERPAUSE_MOBILE_7_F, [hl]
ret
Function89174: ; 89174 (22:5174)
ld hl, wGameTimerPause
- bit 7, [hl]
+ bit GAMETIMERPAUSE_MOBILE_7_F, [hl]
ret
Function8917a: ; 8917a (22:517a)
diff --git a/mobile/mobile_40.asm b/mobile/mobile_40.asm
index 0a04453a0..3dc3f2682 100644
--- a/mobile/mobile_40.asm
+++ b/mobile/mobile_40.asm
@@ -2812,7 +2812,7 @@ Special_Function1011f1: ; 1011f1
ld hl, wdc41
res 4, [hl]
ld hl, wGameTimerPause
- bit 7, [hl]
+ bit GAMETIMERPAUSE_MOBILE_7_F, [hl]
jr z, .skip
ld hl, wdc41
set 4, [hl]
@@ -4703,7 +4703,7 @@ Function101e98: ; 101e98
farcall Function8adb3
ret c
ld hl, wGameTimerPause
- set 7, [hl]
+ set GAMETIMERPAUSE_MOBILE_7_F, [hl]
ld hl, wdc41
set 4, [hl]
ret
@@ -4711,7 +4711,7 @@ Function101e98: ; 101e98
Function101ead: ; 101ead
ld hl, wGameTimerPause
- bit 7, [hl]
+ bit GAMETIMERPAUSE_MOBILE_7_F, [hl]
jr nz, .asm_101ec8
ld hl, wdc41
bit 2, [hl]
diff --git a/wram.asm b/wram.asm
index 3a3df1392..37f951e5b 100644
--- a/wram.asm
+++ b/wram.asm
@@ -1491,7 +1491,8 @@ wFarCallBCBuffer:: dw ; cfb9
wcfbb:: db
wGameTimerPause:: ; cfbc
-; bit 0
+; bit 0: game timer paused
+; bit 7: something mobile
db
ds 1