summaryrefslogtreecommitdiffstats
path: root/source/BoundingBox.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-13 11:08:51 +0100
committermadmaxoft <github@xoft.cz>2013-11-13 11:08:51 +0100
commit293051eca89351181f11443e1785617ab58459c8 (patch)
tree50c637b3c2ac3f1848610623156ce96be1b91be5 /source/BoundingBox.cpp
parentcWindow: Fixed item dupe glitch with painting (#278) (diff)
parentBundled fixes [SEE DESC] (diff)
downloadcuberite-293051eca89351181f11443e1785617ab58459c8.tar
cuberite-293051eca89351181f11443e1785617ab58459c8.tar.gz
cuberite-293051eca89351181f11443e1785617ab58459c8.tar.bz2
cuberite-293051eca89351181f11443e1785617ab58459c8.tar.lz
cuberite-293051eca89351181f11443e1785617ab58459c8.tar.xz
cuberite-293051eca89351181f11443e1785617ab58459c8.tar.zst
cuberite-293051eca89351181f11443e1785617ab58459c8.zip
Diffstat (limited to 'source/BoundingBox.cpp')
-rw-r--r--source/BoundingBox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/BoundingBox.cpp b/source/BoundingBox.cpp
index d8a1bc679..02602992e 100644
--- a/source/BoundingBox.cpp
+++ b/source/BoundingBox.cpp
@@ -243,11 +243,11 @@ bool cBoundingBox::CalcLineIntersection(const Vector3d & a_Min, const Vector3d &
{
// The starting point is inside the bounding box.
a_LineCoeff = 0;
- a_Face = BLOCK_FACE_YM; // Make it look as the top face was hit, although none really are.
+ a_Face = BLOCK_FACE_NONE; // No faces hit
return true;
}
- char Face = 0;
+ char 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