From e29bf228fd5ecb05ff89bea8a8d7c9f31a493583 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 3 Apr 2022 02:39:40 +0200 Subject: [PATCH] Correctly center panel text when holding red item --- Source/control.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/control.cpp b/Source/control.cpp index 1c4ac23a3..3bf5adf20 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -859,8 +859,7 @@ void DrawInfoBox(const Surface &out) int nGold = myPlayer.HoldItem._ivalue; InfoString = fmt::format(ngettext("{:d} gold piece", "{:d} gold pieces", nGold), nGold); } else if (!myPlayer.CanUseItem(myPlayer.HoldItem)) { - ClearPanel(); - AddPanelString(_("Requirements not met")); + InfoString = _("Requirements not met"); } else { if (myPlayer.HoldItem._iIdentified) InfoString = myPlayer.HoldItem._iIName;