mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
removed useless code.
zTurn ignores turns < 0.0087 radians.
This commit is contained in:
parent
0677799839
commit
f59e918a3b
@ -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…
x
Reference in New Issue
Block a user