mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-23 19:26:41 +00:00
Remove useless else
This commit is contained in:
parent
c9f3064cbd
commit
63b3a70ca8
1 changed files with 10 additions and 12 deletions
|
@ -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…
Reference in a new issue