mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-26 15:39:51 +00:00
Merge branch 'dontcollidewithowncollisionbox' into 'master'
Don't explode spell mid-air (#5745) See merge request OpenMW/openmw!468
This commit is contained in:
commit
4490f89a3d
@ -24,6 +24,10 @@ namespace MWPhysics
|
||||
{
|
||||
if (rayResult.m_collisionObject == mMe)
|
||||
return 1.f;
|
||||
|
||||
if (mProjectile && rayResult.m_collisionObject == mProjectile->getCollisionObject())
|
||||
return 1.f;
|
||||
|
||||
if (!mTargets.empty())
|
||||
{
|
||||
if ((std::find(mTargets.begin(), mTargets.end(), rayResult.m_collisionObject) == mTargets.end()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user