mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[11384] Use SPLINEFLAG_FLYING for flying creatures, SPLINEFLAG_UNKNOWN7 is never used. Simplify Map::CreatureCellRelocation code
This commit is contained in:
parent
e4c5aceba4
commit
75e1e7c3a3
7 changed files with 37 additions and 87 deletions
|
|
@ -79,7 +79,7 @@ void WaypointMovementGenerator<Creature>::LoadPath(Creature &creature)
|
|||
CreatureTraveller traveller(creature);
|
||||
|
||||
if (creature.CanFly())
|
||||
creature.AddSplineFlag(SPLINEFLAG_UNKNOWN7);
|
||||
creature.AddSplineFlag(SPLINEFLAG_FLYING);
|
||||
|
||||
const WaypointNode &node = i_path->at(i_currentNode);
|
||||
i_destinationHolder.SetDestination(traveller, node.x, node.y, node.z);
|
||||
|
|
@ -156,7 +156,7 @@ bool WaypointMovementGenerator<Creature>::Update(Creature &creature, const uint3
|
|||
creature.addUnitState(UNIT_STAT_ROAMING_MOVE);
|
||||
|
||||
if (creature.CanFly())
|
||||
creature.AddSplineFlag(SPLINEFLAG_UNKNOWN7);
|
||||
creature.AddSplineFlag(SPLINEFLAG_FLYING);
|
||||
|
||||
// Now we re-set destination to same node and start travel
|
||||
const WaypointNode &node = i_path->at(i_currentNode);
|
||||
|
|
@ -254,7 +254,7 @@ bool WaypointMovementGenerator<Creature>::Update(Creature &creature, const uint3
|
|||
creature.addUnitState(UNIT_STAT_ROAMING_MOVE);
|
||||
|
||||
if (creature.CanFly())
|
||||
creature.AddSplineFlag(SPLINEFLAG_UNKNOWN7);
|
||||
creature.AddSplineFlag(SPLINEFLAG_FLYING);
|
||||
|
||||
if (WaypointBehavior *behavior = i_path->at(i_currentNode).behavior)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue