Core/Movement: Use spline id generator for movement packets
This commit is contained in:
1 parent
3e32caa593
commit
199f8b7140
3 files changed
+3
No files matched your search
@@ -125,6 +125,7 @@ namespace Movement
|
||||
|
||||
MoveSplineInit::MoveSplineInit(Unit* m) : unit(m)
|
||||
{
|
||||
args.splineId = splineIdGen.NewId();
|
||||
// Elevators also use MOVEMENTFLAG_ONTRANSPORT but we do not keep track of their position changes
|
||||
args.TransformForTransport = unit->HasUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT) && unit->GetTransGUID();
|
||||
// mix existing state into new
|
||||
|
||||
Reference in new issue
Block a user