Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mangoszero/server into ai
Browse files Browse the repository at this point in the history
  • Loading branch information
ike3 committed May 8, 2022
2 parents 67159ca + 5160cd4 commit f1fdb8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dep
Submodule dep updated 691 files
20 changes: 10 additions & 10 deletions src/game/vmap/BIH.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@
#ifndef MANGOS_H_BIH
#define MANGOS_H_BIH

#include <G3D/Vector3.h>
#include <G3D/Ray.h>
#include <G3D/AABox.h>

#include <Platform/Define.h>

#include <stdexcept>
#include <vector>
#include <algorithm>
#include <limits>
#include <cmath>

#include <Platform/Define.h>

#include <G3D/Vector3.h>
#include <G3D/Ray.h>
#include <G3D/AABox.h>

#define MAX_STACK_SIZE 64

#ifdef _MSC_VER
Expand Down Expand Up @@ -187,12 +188,11 @@ class BIH
{
float intervalMin = -1.f;
float intervalMax = -1.f;
Vector3 org = r.origin();
Vector3 dir = r.direction();
Vector3 invDir;
Vector3 const& org = r.origin();
Vector3 const& dir = r.direction();
Vector3 const& invDir = r.invDirection();
for (int i = 0; i < 3; ++i)
{
invDir[i] = 1.f / dir[i];
if (G3D::fuzzyNe(dir[i], 0.0f))
{
float t1 = (bounds.low()[i] - org[i]) * invDir[i];
Expand Down

0 comments on commit f1fdb8e

Please sign in to comment.