*Merge.
--HG-- branch : trunk
This commit is contained in:
commit
6aee5fcbe7
603 files changed
+40989
-40987
No files matched your search
@@ -123,9 +123,9 @@ RandomMovementGenerator<Creature>::Initialize(Creature &creature)
|
||||
if(!creature.isAlive())
|
||||
return;
|
||||
|
||||
wander_distance = creature.GetRespawnRadius();
|
||||
wander_distance = creature.GetRespawnRadius();
|
||||
|
||||
if (creature.canFly())
|
||||
if (creature.canFly())
|
||||
creature.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
|
||||
else
|
||||
creature.SetUnitMovementFlags(irand(0,RUNNING_CHANCE_RANDOMMV) > 0 ? MOVEMENTFLAG_WALK_MODE : MOVEMENTFLAG_NONE );
|
||||
|
||||
Reference in new issue
Block a user