mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 06:53:53 +00:00
revert
This commit is contained in:
parent
b9bd4bc126
commit
0409e18a0e
1 changed files with 1 additions and 7 deletions
|
@ -843,12 +843,7 @@ namespace MWMechanics
|
|||
// Find an actor who witnessed the crime
|
||||
for (std::vector<MWWorld::Ptr>::iterator it = neighbors.begin(); it != neighbors.end(); ++it)
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
if ( *it == ptr
|
||||
&& it->getClass().isNpc()) continue; // not the player and is an NPC
|
||||
=======
|
||||
if (*it == ptr) continue; // not the player
|
||||
>>>>>>> parent of 54d9615... NPCs detect crime exclusively
|
||||
|
||||
// Was the crime seen?
|
||||
if ( ( MWBase::Environment::get().getWorld()->getLOS(ptr, *it) && awarenessCheck(ptr, *it) ) ||
|
||||
|
@ -864,8 +859,7 @@ namespace MWMechanics
|
|||
// Tell everyone, including yourself
|
||||
for (std::vector<MWWorld::Ptr>::iterator it1 = neighbors.begin(); it1 != neighbors.end(); ++it1)
|
||||
{
|
||||
if ( *it == ptr
|
||||
&& it->getClass().isNpc()) continue; // not the player and is an NPC
|
||||
if (*it1 == ptr) continue; // not the player
|
||||
|
||||
// TODO: Add more messages
|
||||
if (type == OT_Theft)
|
||||
|
|
Loading…
Reference in a new issue