mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-12-13 20:23:05 +00:00
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();
|
ESM::Position pos = actor.getRefData().getPosition();
|
||||||
|
|
||||||
if(mTotalTime > mDuration)
|
if(mTotalTime > mDuration && mDuration != 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if((pos.pos[0]-mX)*(pos.pos[0]-mX) +
|
if((pos.pos[0]-mX)*(pos.pos[0]-mX) +
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue