diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-12-11 19:44:03 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-12-12 19:59:07 +0100 |
commit | c7f09e01719ad081548a5f46f5f6614a02334e6e (patch) | |
tree | fec7ecf821e467f639c5334b08c057edad401e73 /src/common/Collision/DynamicTree.cpp | |
parent | 3d680ff9baaa0a837d8e8fea185554c16fea97da (diff) |
Core/Vmaps: Minor cleanup (formatting) and documentation updates for BIH::build copy vs move choice
(cherry picked from commit 62dbb0619b552d22ec35f89249553b518af609b7)
Diffstat (limited to 'src/common/Collision/DynamicTree.cpp')
-rw-r--r-- | src/common/Collision/DynamicTree.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/Collision/DynamicTree.cpp b/src/common/Collision/DynamicTree.cpp index dc21ebc44d8..1f5875fac0a 100644 --- a/src/common/Collision/DynamicTree.cpp +++ b/src/common/Collision/DynamicTree.cpp @@ -29,8 +29,6 @@ #include <G3D/Ray.h> #include <G3D/Vector3.h> -using VMAP::ModelInstance; - namespace { int CHECK_TREE_PERIOD = 200; @@ -47,7 +45,7 @@ template<> struct PositionTrait< GameObjectModel> { template<> struct BoundsTrait< GameObjectModel> { static void getBounds(GameObjectModel const& g, G3D::AABox& out) { out = g.getBounds();} - static void getBounds2(GameObjectModel const* g, G3D::AABox& out) { out = g->getBounds();} + void operator()(GameObjectModel const* g, G3D::AABox& out) const { getBounds(*g, out); } }; /* |