forked from mirror/openmw-tes3mp
Adjust touch spell/telekinesis interaction
This commit is contained in:
parent
0c603e986d
commit
0582f2d918
1 changed files with 4 additions and 4 deletions
|
@ -2669,14 +2669,14 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
target = result1.mHitObject;
|
target = result1.mHitObject;
|
||||||
hitPosition = result1.mHitPos;
|
hitPosition = result1.mHitPos;
|
||||||
if (!target.isEmpty() && dist1 > getMaxActivationDistance() && !target.getClass().allowTelekinesis(target))
|
if (dist1 > getMaxActivationDistance() && !target.isEmpty() && (target.getClass().isActor() || !target.getClass().canBeActivated(target)))
|
||||||
target = NULL;
|
target = NULL;
|
||||||
}
|
}
|
||||||
else if (result2.mHit)
|
else if (result2.mHit)
|
||||||
{
|
{
|
||||||
target = result2.mHitObject;
|
target = result2.mHitObject;
|
||||||
hitPosition = result2.mHitPointWorld;
|
hitPosition = result2.mHitPointWorld;
|
||||||
if (!target.isEmpty() && dist2 > getMaxActivationDistance() && !target.getClass().allowTelekinesis(target))
|
if (dist2 > getMaxActivationDistance() && !target.isEmpty() && (target.getClass().isActor() || !target.getClass().canBeActivated(target)))
|
||||||
target = NULL;
|
target = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue