mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 15:09:40 +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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue