Fix telekinesis check for activators

pull/1/head
Allofich 9 years ago
parent c1236f4113
commit e25e698978

@ -1030,7 +1030,7 @@ namespace MWWorld
// Not allowing telekinesis on actors, on doors that teleport to other cells, or on activators
// Original engine doesn't allow telekinesis on books or lights, either
if (!facedObject.isEmpty() && (facedObject.getClass().isActor()
|| facedObject.getCellRef().getTeleport() || facedObject.getClass().getTypeName() == "struct ESM::Activator")
|| facedObject.getCellRef().getTeleport() || facedObject.getClass().getTypeName() == typeid(ESM::Activator).name())
&& (distanceToObject > getMaxActivationDistance()))
return 0;
}

Loading…
Cancel
Save