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

Function WindowFollowSprite

src/openrct2/interface/Window.cpp:883–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881 }
882
883 void WindowFollowSprite(WindowBase& w, EntityId spriteIndex)
884 {
885 if (spriteIndex.ToUnderlying() < kMaxEntities || spriteIndex.IsNull())
886 {
887 w.viewportSmartFollowSprite = spriteIndex;
888 }
889 }
890
891 void WindowUnfollowSprite(WindowBase& w)
892 {

Callers 4

operator()Method · 0.85
MainFollowRideMethod · 0.85
FollowPeepMethod · 0.85
GuestFollowMethod · 0.85

Calls 2

ToUnderlyingMethod · 0.80
IsNullMethod · 0.45

Tested by

no test coverage detected