Skip to content

Commit

Permalink
MoveNearerTo: take AlwaysRun into account
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxlynxlynx committed Aug 15, 2015
1 parent d416eaf commit b86e851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gemrb/core/GameScript/GSUtils.cpp
Expand Up @@ -1783,7 +1783,8 @@ int MoveNearerTo(Scriptable *Sender, const Point &p, int distance, int dont_rele
Actor *actor = (Actor *)Sender;

if (!actor->InMove() || actor->Destination != p) {
actor->WalkTo(p, 0, distance);
bool always_run = core->GetGameControl()->ShouldRun(actor);
actor->WalkTo(p, IF_RUNNING * always_run, distance);
}

if (!actor->InMove()) {
Expand Down

0 comments on commit b86e851

Please sign in to comment.