From 8945809c1fa82ef4e5cf47c10a99adff132dc169 Mon Sep 17 00:00:00 2001 From: Matthew Coppola Date: Tue, 17 Dec 2024 17:40:10 -0500 Subject: [PATCH] Factor in dstscroll to align mouse with chars in 3+ multiplayer --- src/game/menuitem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/menuitem.c b/src/game/menuitem.c index c71548a9b..a18e0bce5 100644 --- a/src/game/menuitem.c +++ b/src/game/menuitem.c @@ -4701,7 +4701,7 @@ Gfx *menuitemOverlay(Gfx *gdl, s16 x, s16 y, s16 x2, s16 y2, struct menuitem *it s32 menuitemGetTop(struct menuitem *item, struct menudialog *dialog) { struct menu *menu = &g_Menus[g_MpPlayerNum]; - s32 dtop = dialog->y + LINEHEIGHT + 1; + s32 dtop = dialog->y + LINEHEIGHT + 1 + dialog->dstscroll; for (s32 i = 0; i < dialog->numcols; ++i) { const s32 colindex = i + dialog->colstart;