mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Use time constants more often (#867)
This commit is contained in:
parent
67207fab94
commit
5ac4a51751
@ -390,7 +390,7 @@ _CalcHoursDaysSince:
|
||||
ld c, a
|
||||
sbc [hl]
|
||||
jr nc, .skip
|
||||
add 24
|
||||
add MAX_HOUR
|
||||
.skip
|
||||
ld [hl], c ; current hours
|
||||
dec hl
|
||||
|
@ -1271,9 +1271,9 @@ PokegearPhoneContactSubmenu:
|
||||
|
||||
GetAMPMHours: ; unreferenced
|
||||
ldh a, [hHours]
|
||||
cp 12
|
||||
cp NOON_HOUR
|
||||
jr c, .am
|
||||
sub 12
|
||||
sub NOON_HOUR
|
||||
ld [wTempByteValue], a
|
||||
scf
|
||||
ret
|
||||
|
@ -1083,7 +1083,7 @@ Function1006dc:
|
||||
ldh a, [hHours]
|
||||
sbc c
|
||||
jr nc, .asm_1006fb
|
||||
add $18
|
||||
add MAX_HOUR
|
||||
|
||||
.asm_1006fb
|
||||
ld [de], a
|
||||
|
Loading…
Reference in New Issue
Block a user