diff options
author | xCrystal <rgr.crystal@gmail.com> | 2019-07-20 19:49:37 +0200 |
---|---|---|
committer | xCrystal <rgr.crystal@gmail.com> | 2019-07-20 19:49:37 +0200 |
commit | 5f95d24c4deeb336b3acc3b0009ae3178da782f7 (patch) | |
tree | a9b6af155962b9eaf62af2a4572b022e4c2549ee /src/engine/home.asm | |
parent | 9d1dd609f95c9670e1108444a504dc6d8b053392 (diff) |
Some more bank2 cleanup
Diffstat (limited to 'src/engine/home.asm')
-rw-r--r-- | src/engine/home.asm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/engine/home.asm b/src/engine/home.asm index 40a1f85..1425359 100644 --- a/src/engine/home.asm +++ b/src/engine/home.asm @@ -9303,11 +9303,17 @@ Func_30a6: ; 30a6 (0:30a6) call BankswitchROM ret -DrawYourOrOppPlayArea: ; 30bc (0:30bc) +; loads tiles and icons to display Your Play Area / Opp. Play Area screen, +; and draws the screen according to the turn player +; input: h -> [wCheckMenuPlayAreaWhichDuelist] and l -> [wCheckMenuPlayAreaWhichLayout] +; similar to DrawYourOrOppPlayArea (bank 2) except it also draws a wide text box. +; this is because bank 2's DrawYourOrOppPlayArea is supposed to come from the Check Menu, +; so the text box is always already there. +DrawYourOrOppPlayArea_Bank0: ; 30bc (0:30bc) ld a, h - ld [wTurnHolder1], a + ld [wCheckMenuPlayAreaWhichDuelist], a ld a, l - ld [wTurnHolder2], a + ld [wCheckMenuPlayAreaWhichLayout], a ldh a, [hBankROM] push af ld a, BANK(_DrawYourOrOppPlayArea) |