1
0

Bundled fixes [SEE DESC]

* BoundingBox now returns FACE_NONE
+ Arrows can be picked up
* Arrows dug up resume physics simulations
* Added sound effects for bows, lava to stone, and arrows
* Fixed SoundParticleEffect on <1.7 protocols
This commit is contained in:
Tiger Wang
2013-11-12 21:43:20 +00:00
parent f713780db3
commit 347162a82f
9 changed files with 147 additions and 25 deletions

View File

@@ -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