Use time constants more often

This commit is contained in:
Rangi
2022-01-10 20:58:47 -05:00
parent 944d0e5303
commit 2aba2b9ff0
2 changed files with 3 additions and 3 deletions

View File

@@ -345,7 +345,7 @@ _CalcHoursDaysSince:
ld c, a
sbc [hl]
jr nc, .skip
add 24
add MAX_HOUR
.skip
ld [hl], c ; current hours
dec hl

View File

@@ -1257,9 +1257,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