diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-25 13:40:10 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-25 14:23:16 -0500 |
commit | e34e68095df1f91dc5357669c187623d7cba39c6 (patch) | |
tree | 5a452f39d9c44012df90a12f1524042c6dbcd062 /engine/party_menu.asm | |
parent | da2b01a36c6855230ec36c42bd49e7cf2ca2d348 (diff) |
Resolve #428: Use `HIGH(X)` and `LOW(X)` instead of `X / $100` and `X % $100` or `X >> 8` and `X & $ff`
Diffstat (limited to 'engine/party_menu.asm')
-rw-r--r-- | engine/party_menu.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/party_menu.asm b/engine/party_menu.asm index e89fdab19..0415e29e4 100644 --- a/engine/party_menu.asm +++ b/engine/party_menu.asm @@ -587,10 +587,10 @@ PlacePartyMonMobileBattleSelection: ; 50307 PartyMenuCheckEgg: ; 50389 - ld a, PartySpecies % $100 + ld a, LOW(PartySpecies) add b ld e, a - ld a, PartySpecies / $100 + ld a, HIGH(PartySpecies) adc 0 ld d, a ld a, [de] |