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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user