Skip to content

Commit

Permalink
Merge branch 'tapdancers' into 'master'
Browse files Browse the repository at this point in the history
AiWander must update wandering manually flag when resuming existing path.

Closes #7647

See merge request OpenMW/openmw!3526
  • Loading branch information
Capostrophic committed Oct 29, 2023
2 parents 1ec4681 + ec81d99 commit e6137cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Programmers
Lordrea
Łukasz Gołębiewski (lukago)
Lukasz Gromanowski (lgro)
Mads Sandvei (Foal)
Marc Bouvier (CramitDeFrog)
Marcin Hulist (Gohan)
Mark Siewert (mark76)
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
Bug #7630: Charm can be cast on creatures
Bug #7631: Cannot trade with/talk to Creeper or Mudcrab Merchant when they're fleeing
Bug #7639: NPCs don't use hand-to-hand if their other melee skills were damaged during combat
Bug #7647: NPC walk cycle bugs after greeting player
Feature #3537: Shader-based water ripples
Feature #5492: Let rain and snow collide with statics
Feature #6149: Dehardcode Lua API_REVISION
Expand Down
4 changes: 2 additions & 2 deletions apps/openmw/mwmechanics/aiwander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ namespace MWMechanics
}

if (mPathFinder.isPathConstructed())
storage.setState(AiWanderStorage::Wander_Walking);
storage.setState(AiWanderStorage::Wander_Walking, !mUsePathgrid);
}

if (!cStats.getMovementFlag(CreatureStats::Flag_ForceJump)
Expand Down Expand Up @@ -499,7 +499,7 @@ namespace MWMechanics
if (!checkIdle(actor, storage.mIdleAnimation) && (greetingState == Greet_Done || greetingState == Greet_None))
{
if (mPathFinder.isPathConstructed())
storage.setState(AiWanderStorage::Wander_Walking);
storage.setState(AiWanderStorage::Wander_Walking, !mUsePathgrid);
else
storage.setState(AiWanderStorage::Wander_ChooseAction);
}
Expand Down

0 comments on commit e6137cf

Please sign in to comment.