summaryrefslogtreecommitdiff
path: root/home/game_time.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/game_time.asm')
-rw-r--r--home/game_time.asm10
1 files changed, 0 insertions, 10 deletions
diff --git a/home/game_time.asm b/home/game_time.asm
index 61cff0a16..0300db73d 100644
--- a/home/game_time.asm
+++ b/home/game_time.asm
@@ -8,9 +8,7 @@ ResetGameTime::
ld [wGameTimeFrames], a
ret
-
GameTimer::
-
nop
ld a, [rSVBK]
@@ -24,12 +22,10 @@ GameTimer::
ld [rSVBK], a
ret
-
UpdateGameTimer::
; Increment the game timer by one frame.
; The game timer is capped at 999:59:59.00.
-
; Don't update if game logic is paused.
ld a, [wGameLogicPaused]
and a
@@ -45,7 +41,6 @@ UpdateGameTimer::
bit 0, [hl]
ret nz
-
; +1 frame
ld hl, wGameTimeFrames
ld a, [hl]
@@ -57,7 +52,6 @@ UpdateGameTimer::
ld [hl], a
ret
-
.second
xor a
ld [hl], a
@@ -73,7 +67,6 @@ UpdateGameTimer::
ld [hl], a
ret
-
.minute
xor a
ld [hl], a
@@ -89,7 +82,6 @@ UpdateGameTimer::
ld [hl], a
ret
-
.hour
xor a
ld [hl], a
@@ -101,7 +93,6 @@ UpdateGameTimer::
ld l, a
inc hl
-
; Cap the timer after 1000 hours.
ld a, h
cp HIGH(1000)
@@ -119,7 +110,6 @@ UpdateGameTimer::
ld [wGameTimeSeconds], a
ret
-
.ok
ld a, h
ld [wGameTimeHours], a