MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ViewportUpdateSmartFollowStaff

Function ViewportUpdateSmartFollowStaff

src/openrct2/interface/Viewport.cpp:731–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729 }
730
731 void ViewportUpdateSmartFollowStaff(WindowBase* window, const Staff& peep)
732 {
733 if (peep.State == PeepState::picked)
734 {
735 window->viewportSmartFollowSprite = EntityId::GetNull();
736 window->viewportTargetSprite = EntityId::GetNull();
737 window->focus = std::nullopt;
738 return;
739 }
740
741 window->focus = Focus(window->viewportSmartFollowSprite);
742 window->viewportTargetSprite = window->viewportSmartFollowSprite;
743 }
744
745 void ViewportUpdateSmartFollowVehicle(WindowBase* window)
746 {

Callers 1

Calls 1

FocusClass · 0.70

Tested by

no test coverage detected