Skip to content

Commit

Permalink
Oops I made a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
snesrev committed Apr 17, 2023
1 parent f591d89 commit 578f90b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sm_85.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ static uint16 WriteMessageTilemap(void) { // 0x8582B8
message_box_animation_y_radius = 0;
for (int i = 0; i != 112; ++i)
ram3000.pause_menu_map_tilemap[i] = 0;
uint16 r0 = *(VoidP *)((uint8 *)&kMessageBoxDefs[6 * (message_box_index - 1)].message_tilemap);
uint16 r9 = *(VoidP *)((uint8 *)&kMessageBoxDefs[6 * (message_box_index - 1) + 1].message_tilemap) - r0;
uint16 r0 = kMessageBoxDefs[message_box_index - 1].message_tilemap;
uint16 r9 = kMessageBoxDefs[message_box_index].message_tilemap - r0;
int n = r9 >> 1;
r9 += 128;
message_box_das0l_value = r9;
Expand Down

0 comments on commit 578f90b

Please sign in to comment.