mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 05:15:33 +00:00
Remove a brainfart from precise projectile handling: all non-actor
non-projectile objects were treated as ground.
This commit is contained in:
parent
f917037ead
commit
64475ebedb
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ namespace MWPhysics
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
mProjectile->hit(MWWorld::Ptr(), m_hitPointWorld, m_hitNormalWorld);
|
auto* target = static_cast<PtrHolder*>(result.m_hitCollisionObject->getUserPointer());
|
||||||
|
auto ptr = target ? target->getPtr() : MWWorld::Ptr();
|
||||||
|
mProjectile->hit(ptr, m_hitPointWorld, m_hitNormalWorld);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue