1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 21:19:55 +00:00

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())
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)
MWBase::Environment::get().getDialogueManager()->say(*it, "thief");
else if (type == OT_Trespassing)