From d17c6890776c3ceab482b60d9e825f558f2971cb Mon Sep 17 00:00:00 2001 From: obligaron Date: Mon, 6 Dec 2021 18:57:03 +0100 Subject: [PATCH] Item highlighting: don't change cursor when a repeated action is requested (LastMouseButtonAction != None) --- Source/qol/itemlabels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/qol/itemlabels.cpp b/Source/qol/itemlabels.cpp index c118b6166..d2b63d28d 100644 --- a/Source/qol/itemlabels.cpp +++ b/Source/qol/itemlabels.cpp @@ -149,7 +149,7 @@ void DrawItemNameLabels(const Surface &out) Item &item = Items[label.id]; if (MousePosition.x >= label.pos.x && MousePosition.x < label.pos.x + label.width && MousePosition.y >= label.pos.y + MarginY && MousePosition.y < label.pos.y + MarginY + Height) { - if (!gmenu_is_active() && PauseMode == 0 && !MyPlayerIsDead && IsMouseOverGameArea()) { + if (!gmenu_is_active() && PauseMode == 0 && !MyPlayerIsDead && IsMouseOverGameArea() && LastMouseButtonAction == MouseActionType::None) { isLabelHighlighted = true; cursPosition = item.position; pcursitem = label.id;