mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 20:35:48 -04:00
Add missing line of sight check
This commit is contained in:
parent
2bb21f2f76
commit
b99ca92fee
@ -762,7 +762,9 @@ namespace MWMechanics
|
|||||||
bool reported=false;
|
bool reported=false;
|
||||||
for (Actors::PtrControllerMap::const_iterator it = mActors.begin(); it != mActors.end(); ++it)
|
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
|
// 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)
|
if (it->first == victim && type == OT_Theft)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user