From b29e9e9c77a73755f420b0eb89361998a4ed6657 Mon Sep 17 00:00:00 2001 From: Allofich Date: Fri, 1 Jul 2016 02:27:20 +0900 Subject: [PATCH] Don't allow telekinesis on actors or teleport doors --- apps/openmw/mwworld/worldimp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 313fe73b1..5bc38005d 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -1025,6 +1025,10 @@ namespace MWWorld float activationDistance = getMaxActivationDistance() + telekinesisRangeBonus; facedObject = getFacedObject(activationDistance); + if (!facedObject.isEmpty() && !facedObject.getClass().isActor() && !facedObject.getCellRef().getTeleport()) + return facedObject; + else + facedObject = getFacedObject(getMaxActivationDistance()); } return facedObject;