mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 14:36:40 -04:00
Remove useless else
This commit is contained in:
parent
c9f3064cbd
commit
63b3a70ca8
@ -178,8 +178,7 @@ bool MWMechanics::AiPackage::pathTo(const MWWorld::Ptr& actor, const osg::Vec3f&
|
||||
smoothTurn(actor, getXAngleToPoint(start, dest), 0);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (mRotateOnTheRunChecks == 0
|
||||
|| isReachableRotatingOnTheRun(actor, *mPathFinder.getPath().begin())) // to prevent circling around a path point
|
||||
{
|
||||
@ -191,7 +190,6 @@ bool MWMechanics::AiPackage::pathTo(const MWWorld::Ptr& actor, const osg::Vec3f&
|
||||
|
||||
// handle obstacles on the way
|
||||
evadeObstacles(actor, pos);
|
||||
}
|
||||
|
||||
// turn to next path point by X,Z axes
|
||||
zTurn(actor, mPathFinder.getZAngleToNext(pos.pos[0], pos.pos[1]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user