mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 17:36:41 +00:00
Fix telekinesis check for activators
This commit is contained in:
parent
c1236f4113
commit
e25e698978
1 changed files with 1 additions and 1 deletions
|
@ -1030,7 +1030,7 @@ namespace MWWorld
|
||||||
// Not allowing telekinesis on actors, on doors that teleport to other cells, or on activators
|
// 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
|
// Original engine doesn't allow telekinesis on books or lights, either
|
||||||
if (!facedObject.isEmpty() && (facedObject.getClass().isActor()
|
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()))
|
&& (distanceToObject > getMaxActivationDistance()))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue