summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2018-11-07 14:48:06 -0600
committerDiegoisawesome <diego@domoreaweso.me>2018-11-07 14:48:06 -0600
commit65f053fd89e09b13e407ac53488043b728660e6e (patch)
treef179dc4fa486c221c38bcc4aca2ae62c3cfbf663 /src
parenta052e45f279bb86c4e749ae8cd4f83b8e13c329f (diff)
Thanks Egg
Diffstat (limited to 'src')
-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);