forked from mirror/openmw-tes3mp
removed useless code.
zTurn ignores turns < 0.0087 radians.
This commit is contained in:
parent
0677799839
commit
f59e918a3b
2 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue