[Client] Prevent DedicatedActors from automatically equipping torches

This commit is contained in:
David Cernat 2017-05-27 02:52:26 +03:00
parent 940a2b6eb5
commit 9d9581a1c2

View file

@ -903,11 +903,11 @@ namespace MWMechanics
/*
Start of tes3mp change (major)
We need DedicatedPlayers to not automatically unequip
their light-emitting items, so a 2nd condition has been added
for them
We need DedicatedPlayers and DedicatedActors to not automatically
equip their light-emitting items, so additions conditions have been
added for them
*/
if (!isPlayer && !mwmp::PlayerList::isDedicatedPlayer(ptr))
if (!isPlayer && !mwmp::PlayerList::isDedicatedPlayer(ptr) && !mwmp::Main::get().getCellController()->isDedicatedActor(ptr))
{
/*
End of tes3mp change (major)