1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 21:40:03 +00:00

Remove unused argument

This commit is contained in:
elsid 2019-03-20 01:59:09 +03:00
parent 287433efa8
commit 1e8bf3846e
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40
2 changed files with 3 additions and 3 deletions

View File

@ -121,13 +121,13 @@ namespace MWMechanics
* u = how long to move sideways * u = how long to move sideways
* *
*/ */
void ObstacleCheck::update(const MWWorld::Ptr& actor, float duration, float scaleMinimumDistance) void ObstacleCheck::update(const MWWorld::Ptr& actor, float duration)
{ {
const MWWorld::Class& cls = actor.getClass(); const MWWorld::Class& cls = actor.getClass();
ESM::Position pos = actor.getRefData().getPosition(); ESM::Position pos = actor.getRefData().getPosition();
if(mDistSameSpot == -1) if(mDistSameSpot == -1)
mDistSameSpot = DIST_SAME_SPOT * cls.getSpeed(actor) * scaleMinimumDistance; mDistSameSpot = DIST_SAME_SPOT * cls.getSpeed(actor);
float distSameSpot = mDistSameSpot * duration; float distSameSpot = mDistSameSpot * duration;

View File

@ -30,7 +30,7 @@ namespace MWMechanics
bool isEvading() const; bool isEvading() const;
// Updates internal state, call each frame for moving actor // Updates internal state, call each frame for moving actor
void update(const MWWorld::Ptr& actor, float duration, float scaleMinimumDistance = 1.0f); void update(const MWWorld::Ptr& actor, float duration);
// change direction to try to fix "stuck" actor // change direction to try to fix "stuck" actor
void takeEvasiveAction(MWMechanics::Movement& actorMovement) const; void takeEvasiveAction(MWMechanics::Movement& actorMovement) const;