1
0

Implemented Vector3<>::Floor()

This commit is contained in:
Tiger Wang
2014-06-30 19:21:21 +01:00
parent 428cfb5c21
commit 85fae0e521
2 changed files with 19 additions and 10 deletions

View File

@@ -74,8 +74,9 @@ void cArrowEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFa
Hit += SinkMovement; // Make arrow sink into block a little
super::OnHitSolidBlock(Hit, a_HitFace);
int X = (int)floor(Hit.x), Y = (int)floor(Hit.y), Z = (int)floor(Hit.z);
Hit.Floor();
int X = Hit.x, Y = Hit.y, Z = Hit.z;
m_HitBlockPos = Vector3i(X, Y, Z);
// Broadcast arrow hit sound