MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ItemInRange

Function ItemInRange

TombEngine/Game/collision/collide_item.cpp:435–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435static bool ItemInRange(int x, int z, int radius)
436{
437 return ((SQUARE(x) + SQUARE(z)) <= SQUARE(radius));
438}
439
440bool ItemNearLara(const Vector3i& origin, int radius)
441{

Callers 2

ItemNearLaraFunction · 0.85
ItemNearTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected