mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Make GetClosestPeep static
This commit is contained in:
@@ -718,7 +718,7 @@ struct PeepDistance
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
PeepDistance GetClosestPeep(const ScreenCoordsXY& viewportCoords, const int32_t maxDistance, PeepDistance goal)
|
||||
static PeepDistance GetClosestPeep(const ScreenCoordsXY& viewportCoords, const int32_t maxDistance, PeepDistance goal)
|
||||
{
|
||||
for (auto peep : EntityList<T>())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user