mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Revert "Rearranged check for better performance"
This reverts commit 332ceb51a2
.
This commit is contained in:
parent
f2d4f290cc
commit
5a12407436
1 changed files with 4 additions and 4 deletions
|
@ -300,10 +300,6 @@ namespace MWMechanics
|
|||
if (!actor1.getClass().isMobile(actor1))
|
||||
return;
|
||||
|
||||
// Stop here if target is unreachable
|
||||
if (!MWMechanics::canFight(actor1, actor2))
|
||||
return;
|
||||
|
||||
// If this is set to true, actor1 will start combat with actor2 if the awareness check at the end of the method returns true
|
||||
bool aggressive = false;
|
||||
|
||||
|
@ -379,6 +375,10 @@ namespace MWMechanics
|
|||
}
|
||||
}
|
||||
|
||||
// Stop here if target is unreachable
|
||||
if (!MWMechanics::canFight(actor1, actor2))
|
||||
return;
|
||||
|
||||
// Do aggression check if actor2 is the player or a player follower or escorter
|
||||
if (!aggressive)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue