mirror of
https://github.com/pret/pokegold.git
synced 2026-09-10 17:45:33 -05:00
Use time constants more often
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user