1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Fix guest window viewport on pick up and thoughts not invalidating (#24535)

This commit is contained in:
mix
2025-06-03 11:04:10 +01:00
committed by GitHub
parent a3494d5358
commit 2d364ec070

View File

@@ -933,6 +933,22 @@ namespace OpenRCT2::Ui::Windows
}
}
}
const std::optional<Focus> currentFocus = peep->State != PeepState::Picked ? std::optional(Focus(peep->Id))
: std::nullopt;
if (focus != currentFocus)
{
OnViewportRotate();
}
for (const auto& thought : peep->Thoughts)
{
if (thought.freshness == 1 || thought.freshness == 2)
{
InvalidateWidget(WIDX_MARQUEE);
break;
}
}
}
void OnTextInputOverview(WidgetIndex widgetIndex, std::string_view text)