Unverified Commit 59da98b9 authored by Phillip Stephens's avatar Phillip Stephens Committed by GitHub

Merge pull request #107 from lioncash/ball

CBallCamera: Use bool instead of float for holding boolean value
parents e1990a68 21c1ed29
......@@ -1750,7 +1750,8 @@ bool CBallCamera::DetectCollision(const zeus::CVector3f& from, const zeus::CVect
zeus::CVector3f delta = to - from;
float deltaMag = delta.magnitude();
zeus::CVector3f deltaNorm = delta * (1.f / deltaMag);
float clear = true;
bool clear = true;
if (deltaMag > 0.000001f) {
float margin = 2.f * radius;
zeus::CAABox aabb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment