From 62dbb0619b552d22ec35f89249553b518af609b7 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 11 Dec 2024 19:44:03 +0100 Subject: Core/Vmaps: Minor cleanup (formatting) and documentation updates for BIH::build copy vs move choice --- src/common/Collision/DynamicTree.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/common/Collision/DynamicTree.cpp') 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 #include -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); } }; /* -- cgit v1.2.3