Skip to content

Commit

Permalink
[9152] Prevent unexpected removal of move flag for following creature…
Browse files Browse the repository at this point in the history
…s not in combat

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Jan 12, 2010
1 parent a311d39 commit 99e6b05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/TargetedMovementGenerator.cpp
Expand Up @@ -93,7 +93,7 @@ void TargetedMovementGenerator<Creature>::Initialize(Creature &owner)
{
if (owner.HasSearchedAssistance())
owner.AddMonsterMoveFlag(MONSTER_MOVE_WALK);
else
else if (owner.isInCombat())
owner.RemoveMonsterMoveFlag(MONSTER_MOVE_WALK);

if (((Creature*)&owner)->canFly())
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9151"
#define REVISION_NR "9152"
#endif // __REVISION_NR_H__

0 comments on commit 99e6b05

Please sign in to comment.