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

This commit is contained in:
mix authored and GitHub committed 2025-06-03 07:04:10 -03:00
1 parent a3494d5358
commit 2d364ec070
1 file changed
+16
+16
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)