Browse Source

Correctly center panel text when holding red item

pull/4322/head
Anders Jenbo 4 years ago
parent
commit
e29bf228fd
  1. 3
      Source/control.cpp

3
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;

Loading…
Cancel
Save