1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 16:15:33 +00:00

Fix telekinesis check for activators

This commit is contained in:
Allofich 2016-07-04 23:27:02 +09:00
parent c1236f4113
commit e25e698978

View file

@ -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;
}