Browse Source

Ensure that network timeout info shows up in the info panel

pull/7306/head
staphen 2 years ago committed by Stephen C. Wills
parent
commit
df0b3aaab7
  1. 4
      Source/control.cpp

4
Source/control.cpp

@ -1189,12 +1189,12 @@ void FreeControlPan()
void DrawInfoBox(const Surface &out) void DrawInfoBox(const Surface &out)
{ {
DrawPanelBox(out, { 177, 62, InfoBoxSize.width, InfoBoxSize.height }, GetMainPanel().position + InfoBoxTopLeft); DrawPanelBox(out, { 177, 62, InfoBoxSize.width, InfoBoxSize.height }, GetMainPanel().position + InfoBoxTopLeft);
if (!panelflag && !trigflag && pcursinvitem == -1 && pcursstashitem == StashStruct::EmptyCell && !spselflag) { if (!panelflag && !trigflag && pcursinvitem == -1 && pcursstashitem == StashStruct::EmptyCell && !spselflag && pcurs != CURSOR_HOURGLASS) {
InfoString = StringOrView {}; InfoString = StringOrView {};
InfoColor = UiFlags::ColorWhite; InfoColor = UiFlags::ColorWhite;
} }
Player &myPlayer = *MyPlayer; Player &myPlayer = *MyPlayer;
if (spselflag || trigflag) { if (spselflag || trigflag || pcurs == CURSOR_HOURGLASS) {
InfoColor = UiFlags::ColorWhite; InfoColor = UiFlags::ColorWhite;
} else if (!myPlayer.HoldItem.isEmpty()) { } else if (!myPlayer.HoldItem.isEmpty()) {
if (myPlayer.HoldItem._itype == ItemType::Gold) { if (myPlayer.HoldItem._itype == ItemType::Gold) {

Loading…
Cancel
Save