1
0

Using recommendations (I think)

This commit is contained in:
STRWarrior
2014-03-30 17:21:13 +02:00
parent 66f1bb7b67
commit 36e1e57d03
6 changed files with 7 additions and 6 deletions

View File

@@ -68,7 +68,8 @@ protected:
if (bb.CalcLineIntersection(Line1, Line2, LineCoeff, Face))
{
Vector3d Intersection = Line1 + m_Projectile->GetSpeed() * LineCoeff;
if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, Face, &Intersection))
const Vector3i BlockHitPos = Vector3i(Intersection);
if (cPluginManager::Get()->CallHookProjectileHitBlock(*m_Projectile, Face, &BlockHitPos))
{
return false;
}