From 386a0a47f295c8ec247350d1386454005c295b97 Mon Sep 17 00:00:00 2001 From: Matthew Coppola Date: Sat, 30 Nov 2024 13:58:33 -0500 Subject: [PATCH] Fix mouse input not updating deferred slider while in dimmed mode --- src/game/menuitem.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/game/menuitem.c b/src/game/menuitem.c index 9a3625030..59eec1160 100644 --- a/src/game/menuitem.c +++ b/src/game/menuitem.c @@ -2481,9 +2481,14 @@ bool menuitemSliderTick(struct menuitem *item, struct menudialog *dialog, struct index = item->param3; } if (item->handler) { - item->handler(MENUOP_GET, item, &handlerdata); - handlerdata.slider.value = index; - item->handler(MENUOP_SET, item, &handlerdata); + if ((item->flags & MENUITEMFLAG_SLIDER_DEFERRED) && + (tickflags & MENUTICKFLAG_DIALOGISDIMMED)) { + deferredindex = index; + } else { + item->handler(MENUOP_GET, item, &handlerdata); + handlerdata.slider.value = index; + item->handler(MENUOP_SET, item, &handlerdata); + } } return true; }