You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
Update the map view page if the selected symbol changed on a different page
This commit is contained in:
@@ -109,9 +109,14 @@ void map_viewer_draw(void) {
|
||||
}
|
||||
|
||||
void map_viewer_input(void) {
|
||||
u16 buttonPressed = gPlayer1Controller->buttonPressed;
|
||||
if (gCSSwitchedPage) {
|
||||
s32 targetIndex = get_symbol_index_from_addr_backward(gSelectedAddress);
|
||||
if (targetIndex != -1) {
|
||||
sMapViewerSelectedIndex = targetIndex;
|
||||
}
|
||||
}
|
||||
|
||||
if (buttonPressed & A_BUTTON) {
|
||||
if (gPlayer1Controller->buttonPressed & A_BUTTON) {
|
||||
open_address_select(gMapSymbols[sMapViewerSelectedIndex].addr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user