forked from teamnwah/openmw-tes3coop
FollowCell duration = 0 -> infinite time
This commit is contained in:
parent
7066844e52
commit
7e96a391da
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ bool MWMechanics::AiFollow::execute (const MWWorld::Ptr& actor,float duration)
|
|||
|
||||
ESM::Position pos = actor.getRefData().getPosition();
|
||||
|
||||
if(mTotalTime > mDuration)
|
||||
if(mTotalTime > mDuration && mDuration != 0)
|
||||
return true;
|
||||
|
||||
if((pos.pos[0]-mX)*(pos.pos[0]-mX) +
|
||||
|
|
Loading…
Reference in a new issue