1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 02:15:32 +00:00

Handle Trespassing crime differently from Theft (bug #4158)

This commit is contained in:
Andrei Kortunov 2017-10-15 11:03:02 +04:00
parent ea3729790f
commit 8f255a6b72

View file

@ -1123,6 +1123,10 @@ namespace MWMechanics
if (playerFollowers.find(*it) != playerFollowers.end())
continue;
// NPC will complain about theft even if he will do nothing about it
if (type == OT_Theft || type == OT_Pickpocket)
MWBase::Environment::get().getDialogueManager()->say(*it, "thief");
crimeSeen = true;
}
}
@ -1243,9 +1247,7 @@ namespace MWMechanics
{
reported = true;
if (type == OT_Theft || type == OT_Pickpocket)
MWBase::Environment::get().getDialogueManager()->say(*it, "thief");
else if (type == OT_Trespassing)
if (type == OT_Trespassing)
MWBase::Environment::get().getDialogueManager()->say(*it, "intruder");
}