Resolve #428: Use HIGH(X)
and LOW(X)
instead of X / $100
and X % $100
or X >> 8
and X & $ff
This commit is contained in:
@@ -106,11 +106,11 @@ UpdateGameTimer:: ; 20ad
|
||||
|
||||
; Cap the timer after 1000 hours.
|
||||
ld a, h
|
||||
cp 1000 / $100
|
||||
cp HIGH(1000)
|
||||
jr c, .ok
|
||||
|
||||
ld a, l
|
||||
cp 1000 % $100
|
||||
cp LOW(1000)
|
||||
jr c, .ok
|
||||
|
||||
ld hl, GameTimeCap
|
||||
|
Reference in New Issue
Block a user