removed useless code.

zTurn ignores turns < 0.0087 radians.
This commit is contained in:
dteviot 2015-08-29 17:34:33 +12:00
parent 0677799839
commit f59e918a3b
2 changed files with 0 additions and 5 deletions

View file

@ -109,8 +109,6 @@ bool MWMechanics::AiPackage::pathTo(const MWWorld::Ptr& actor, ESM::Pathgrid::Po
{
movement.mPosition[0] = 1;
movement.mPosition[1] = 1;
// change the angle a bit, too
zTurn(actor, mPathFinder.getZAngleToNext(pos.pos[0] + 1, pos.pos[1]));
}
}
else { //Not stuck, so reset things

View file

@ -437,9 +437,6 @@ namespace MWMechanics
// but doesn't seem to do that?
actor.getClass().getMovementSettings(actor).mPosition[0] = 1;
actor.getClass().getMovementSettings(actor).mPosition[1] = 0.1f;
// change the angle a bit, too
const ESM::Position& pos = actor.getRefData().getPosition();
zTurn(actor, storage.mPathFinder.getZAngleToNext(pos.pos[0] + 1, pos.pos[1]));
}
mStuckCount++; // TODO: maybe no longer needed
}