Remove useless else

This commit is contained in:
elsid 2018-08-18 18:28:12 +03:00
parent c9f3064cbd
commit 63b3a70ca8
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -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]));