mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:23:54 +00:00
Revert "AiFollow: return from execute() if target is not player"
This reverts commit 061c7813f6
.
Fixes #1898.
This commit is contained in:
parent
40ce5add59
commit
8ad2b95208
1 changed files with 0 additions and 5 deletions
|
@ -50,11 +50,6 @@ bool MWMechanics::AiFollow::execute (const MWWorld::Ptr& actor,float duration)
|
|||
)
|
||||
return true; //Target doesn't exist
|
||||
|
||||
// Only the player can be actively followed. AiFollow packages with targets other than the player
|
||||
// are only used for defining combat alliances, since NPCs will defend whoever they are following or being followed by.
|
||||
if (target != MWBase::Environment::get().getWorld()->getPlayerPtr())
|
||||
return false;
|
||||
|
||||
actor.getClass().getCreatureStats(actor).setDrawState(DrawState_Nothing);
|
||||
|
||||
ESM::Position pos = actor.getRefData().getPosition(); //position of the actor
|
||||
|
|
Loading…
Reference in a new issue