From 06152fde77089675458291b04835bb089cd63473 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 31 Oct 2016 11:00:56 +0200 Subject: [PATCH] Stop player-controlled NPCs from reporting crimes committed by players --- apps/openmw/mwmechanics/mechanicsmanagerimp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp index b10127f74..49b18d1ff 100644 --- a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp +++ b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp @@ -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)