aboutsummaryrefslogtreecommitdiffstats
path: root/home/play_time.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2016-06-11 15:45:24 -0500
committerdannye <corrnondacqb@yahoo.com>2016-06-11 15:45:24 -0500
commit269f2c3ba72776e975f5b00d9a1361cadbda42a7 (patch)
tree459220542fcbfbd48b9725b48597b5740ee1ec0f /home/play_time.asm
parentClean up main.asm (diff)
downloadpokeyellow-269f2c3ba72776e975f5b00d9a1361cadbda42a7.tar.gz
pokeyellow-269f2c3ba72776e975f5b00d9a1361cadbda42a7.tar.xz
pokeyellow-269f2c3ba72776e975f5b00d9a1361cadbda42a7.zip
Sync with pokered
from August 29, 2015 to April 6, 2016
Diffstat (limited to 'home/play_time.asm')
-rw-r--r--home/play_time.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/home/play_time.asm b/home/play_time.asm
index 09c894fc..8044d15c 100644
--- a/home/play_time.asm
+++ b/home/play_time.asm
@@ -6,7 +6,7 @@ TrackPlayTime: ; 1ef5 (0:1ef5)
ld a,[wd732]
bit 0,a
ret z
- ld a, [wPlayTimeMinutes]
+ ld a, [wPlayTimeMaxed]
and a
ret nz
ld a, [wPlayTimeFrames]
@@ -23,16 +23,16 @@ TrackPlayTime: ; 1ef5 (0:1ef5)
ret nz
xor a
ld [wPlayTimeSeconds], a
- ld a, [wPlayTimeMinutes + 1]
+ ld a, [wPlayTimeMinutes]
inc a
- ld [wPlayTimeMinutes + 1], a
+ ld [wPlayTimeMinutes], a
cp 60
ret nz
xor a
- ld [wPlayTimeMinutes + 1], a
- ld a, [wPlayTimeHours + 1]
+ ld [wPlayTimeMinutes], a
+ ld a, [wPlayTimeHours]
inc a
- ld [wPlayTimeHours + 1], a
+ ld [wPlayTimeHours], a
cp $ff
ret nz
ld hl, wd47a
@@ -40,10 +40,10 @@ TrackPlayTime: ; 1ef5 (0:1ef5)
.maxIGT
ld a, 59
ld [wPlayTimeSeconds], a
- ld [wPlayTimeMinutes + 1], a
- ld a, $ff
- ld [wPlayTimeHours + 1], a
ld [wPlayTimeMinutes], a
+ ld a, $ff
+ ld [wPlayTimeHours], a
+ ld [wPlayTimeMaxed], a
ret
CountDownIgnoreInputBitReset: ; 1f54 (0:1f54)