mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 23:51:09 -04:00
FollowCell duration = 0 -> infinite time
This commit is contained in:
parent
7066844e52
commit
7e96a391da
@ -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…
x
Reference in New Issue
Block a user