diff options
author | Shauren <shauren.trinity@gmail.com> | 2012-07-04 22:20:21 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2012-07-04 22:20:21 +0200 |
commit | ed6f3e2deff55f913f9646db5f540b7704088478 (patch) | |
tree | 2212558564e685b43214a2ca80aea7014af8e200 /src/server/collision/BoundingIntervalHierarchy.h | |
parent | 138375c0455fc0c7f1c2fc0e6b94930dea28ae9c (diff) | |
parent | c3cb82b9263331ceaf68ebf69638ce3162b4a934 (diff) |
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x
Diffstat (limited to 'src/server/collision/BoundingIntervalHierarchy.h')
-rwxr-xr-x | src/server/collision/BoundingIntervalHierarchy.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/collision/BoundingIntervalHierarchy.h b/src/server/collision/BoundingIntervalHierarchy.h index ea70fc3e322..a4bbe21006a 100755 --- a/src/server/collision/BoundingIntervalHierarchy.h +++ b/src/server/collision/BoundingIntervalHierarchy.h @@ -128,7 +128,7 @@ class BIH delete[] dat.primBound; delete[] dat.indices; } - uint32 primCount() { return objects.size(); } + uint32 primCount() const { return objects.size(); } template<typename RayCallback> void intersectRay(const Ray &r, RayCallback& intersectCallback, float &maxDist, bool stopAtFirst=false) const @@ -400,7 +400,8 @@ class BIH void buildHierarchy(std::vector<uint32> &tempTree, buildData &dat, BuildStats &stats); - void createNode(std::vector<uint32> &tempTree, int nodeIndex, uint32 left, uint32 right) { + void createNode(std::vector<uint32> &tempTree, int nodeIndex, uint32 left, uint32 right) const + { // write leaf node tempTree[nodeIndex + 0] = (3 << 30) | left; tempTree[nodeIndex + 1] = right - left + 1; |