| 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 | { |
no test coverage detected