summaryrefslogtreecommitdiff
path: root/src/script_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/script_menu.c')
-rw-r--r--src/script_menu.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/script_menu.c b/src/script_menu.c
index 9af1a857f..2aa546288 100644
--- a/src/script_menu.c
+++ b/src/script_menu.c
@@ -1088,26 +1088,15 @@ static u16 sub_80E1EB8(const u8 *str)
static void DrawMultichoiceMenu(u8 left, u8 top, u8 multichoiceId, u8 ignoreBPress, u8 cursorPos)
{
int i;
- u8 right;
- u8 bottom;
u8 windowId;
u8 count = gMultichoiceLists[multichoiceId].count;
const struct MenuAction *actions = gMultichoiceLists[multichoiceId].list;
- const struct MenuAction *action;
int width = 0;
u8 newWidth;
- // Must be a fakematch because come on, seriously
- if (width < count)
+ for (i = 0; i < count; i++)
{
- action = &actions[0];
- i = count;
- do
- {
- width = display_text_and_get_width(action->text, width);
- action++;
- i--;
- } while (i != 0);
+ width = display_text_and_get_width(actions[i].text, width);
}
newWidth = convert_pixel_width_to_tile_width(width);