summaryrefslogtreecommitdiffstats
path: root/src/BoundingBox.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-02-04 19:59:05 +0100
committerTycho <work.tycho+git@gmail.com>2014-02-04 19:59:05 +0100
commit8464f689ea214d3c30105ae58539885cf1268317 (patch)
tree4e165031ed1528e4fd7c704850b62c543baf8d3f /src/BoundingBox.cpp
parentFixed calling plugins with userdata params. (diff)
downloadcuberite-8464f689ea214d3c30105ae58539885cf1268317.tar
cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.gz
cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.bz2
cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.lz
cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.xz
cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.zst
cuberite-8464f689ea214d3c30105ae58539885cf1268317.zip
Diffstat (limited to '')
-rw-r--r--src/BoundingBox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BoundingBox.cpp b/src/BoundingBox.cpp
index d0943d42a..86d4546c7 100644
--- a/src/BoundingBox.cpp
+++ b/src/BoundingBox.cpp
@@ -228,7 +228,7 @@ bool cBoundingBox::IsInside(const Vector3d & a_Min, const Vector3d & a_Max, doub
-bool cBoundingBox::CalcLineIntersection(const Vector3d & a_Line1, const Vector3d & a_Line2, double & a_LineCoeff, char & a_Face)
+bool cBoundingBox::CalcLineIntersection(const Vector3d & a_Line1, const Vector3d & a_Line2, double & a_LineCoeff, eBlockFace & a_Face)
{
return CalcLineIntersection(m_Min, m_Max, a_Line1, a_Line2, a_LineCoeff, a_Face);
}
@@ -237,7 +237,7 @@ bool cBoundingBox::CalcLineIntersection(const Vector3d & a_Line1, const Vector3d
-bool cBoundingBox::CalcLineIntersection(const Vector3d & a_Min, const Vector3d & a_Max, const Vector3d & a_Line1, const Vector3d & a_Line2, double & a_LineCoeff, char & a_Face)
+bool cBoundingBox::CalcLineIntersection(const Vector3d & a_Min, const Vector3d & a_Max, const Vector3d & a_Line1, const Vector3d & a_Line2, double & a_LineCoeff, eBlockFace & a_Face)
{
if (IsInside(a_Min, a_Max, a_Line1))
{
@@ -247,7 +247,7 @@ bool cBoundingBox::CalcLineIntersection(const Vector3d & a_Min, const Vector3d &
return true;
}
- char Face = BLOCK_FACE_NONE;
+ eBlockFace Face = BLOCK_FACE_NONE;
double Coeff = Vector3d::NO_INTERSECTION;
// Check each individual bbox face for intersection with the line, remember the one with the lowest coeff