mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +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
|
|
@ -37,7 +37,7 @@ void PointMovementGenerator<T>::Initialize(T &unit)
|
|||
i_destinationHolder.SetDestination(traveller, i_x, i_y, i_z);
|
||||
|
||||
if (unit.GetTypeId() == TYPEID_UNIT && ((Creature*)&unit)->CanFly())
|
||||
((Creature&)unit).AddSplineFlag(SPLINEFLAG_UNKNOWN7);
|
||||
((Creature&)unit).AddSplineFlag(SPLINEFLAG_FLYING);
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue