forked from mirror/openmw-tes3mp
Add missing line of sight check
This commit is contained in:
parent
2bb21f2f76
commit
b99ca92fee
1 changed files with 3 additions and 1 deletions
|
@ -762,7 +762,9 @@ namespace MWMechanics
|
|||
bool reported=false;
|
||||
for (Actors::PtrControllerMap::const_iterator it = mActors.begin(); it != mActors.end(); ++it)
|
||||
{
|
||||
if (it->first != ptr && awarenessCheck(ptr, it->first))
|
||||
if (it->first != ptr &&
|
||||
MWBase::Environment::get().getWorld()->getLOS(ptr, it->first) &&
|
||||
awarenessCheck(ptr, it->first))
|
||||
{
|
||||
// NPCs will always curse you when they notice you steal their items, even if they don't report the crime
|
||||
if (it->first == victim && type == OT_Theft)
|
||||
|
|
Loading…
Reference in a new issue