Stop player-controlled NPCs from reporting crimes committed by players

This commit is contained in:
David Cernat 2016-10-31 11:00:56 +02:00
parent 4621363b65
commit 06152fde77

View file

@ -1117,6 +1117,11 @@ namespace MWMechanics
if (playerFollowers.find(*it) != playerFollowers.end()) if (playerFollowers.find(*it) != playerFollowers.end())
continue; continue;
// tes3mp needs player-controlled NPCs to not report crimes committed by other players,
// so a condition has been added that should be true only for them
if (!it->getBase()->canChangeCell)
continue;
if (type == OT_Theft || type == OT_Pickpocket) if (type == OT_Theft || type == OT_Pickpocket)
MWBase::Environment::get().getDialogueManager()->say(*it, "thief"); MWBase::Environment::get().getDialogueManager()->say(*it, "thief");
else if (type == OT_Trespassing) else if (type == OT_Trespassing)