Skip to content

Commit

Permalink
[c12682] Keep CombatMovement, Running and Waypoint-Paused states afte…
Browse files Browse the repository at this point in the history
…r evade

(based on commit [12490] - 40d014a)
  • Loading branch information
Schmoozerd authored and Dramacydal committed Aug 19, 2013
1 parent 22f520e commit 6cad863
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/game/HomeMovementGenerator.cpp
Expand Up @@ -52,7 +52,7 @@ void HomeMovementGenerator<Creature>::_setTargetLocation(Creature& owner)
init.Launch();

arrived = false;
owner.clearUnitState(UNIT_STAT_ALL_STATE);
owner.clearUnitState(UNIT_STAT_ALL_DYN_STATES);
}

bool HomeMovementGenerator<Creature>::Update(Creature& owner, const uint32& time_diff)
Expand Down
3 changes: 2 additions & 1 deletion src/game/Unit.h
Expand Up @@ -467,7 +467,8 @@ enum UnitState

UNIT_STAT_RUNNING_STATE = UNIT_STAT_CHASE_MOVE | UNIT_STAT_FLEEING_MOVE | UNIT_STAT_RUNNING,

UNIT_STAT_ALL_STATE = 0xFFFFFFFF
UNIT_STAT_ALL_STATE = 0xFFFFFFFF,
UNIT_STAT_ALL_DYN_STATES = UNIT_STAT_ALL_STATE & ~(UNIT_STAT_NO_COMBAT_MOVEMENT | UNIT_STAT_RUNNING | UNIT_STAT_WAYPOINT_PAUSED | UNIT_STAT_IGNORE_PATHFINDING),
};

enum UnitMoveType
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 "12681"
#define REVISION_NR "12682"
#endif // __REVISION_NR_H__

0 comments on commit 6cad863

Please sign in to comment.