Identify scrolling menu lists in WRAM

Fixes #809
This commit is contained in:
Rangi
2021-03-08 09:41:55 -05:00
parent 9c17fb14c8
commit c1c609ec4a
6 changed files with 20 additions and 18 deletions

View File

@@ -27,7 +27,7 @@ Elevator::
ret
.LoadFloors:
ld de, wCurElevator
ld de, wCurElevatorCount
ld bc, wElevatorDataEnd - wElevatorData
ld hl, wElevatorPointer
ld a, [hli]
@@ -38,6 +38,7 @@ Elevator::
inc hl
ld [de], a
inc de
assert wCurElevatorCount + 1 == wCurElevatorFloors
.loop
ld a, [wElevatorPointerBank]
call GetFarByte
@@ -184,7 +185,7 @@ Elevator_MenuData:
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
db 4, 0 ; rows, columns
db SCROLLINGMENU_ITEMS_NORMAL ; item format
dbw 0, wCurElevator
dbw 0, wCurElevatorCount
dba GetElevatorFloorStrings
dba NULL
dba NULL