mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[11911] Use mmaps for Spline Movement
This commit is contained in:
parent
df3a5f2808
commit
e738c27714
8 changed files with 55 additions and 25 deletions
|
|
@ -50,7 +50,7 @@ namespace Movement
|
|||
return MOVE_RUN;
|
||||
}
|
||||
|
||||
void MoveSplineInit::Launch()
|
||||
int32 MoveSplineInit::Launch()
|
||||
{
|
||||
MoveSpline& move_spline = *unit.movespline;
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ namespace Movement
|
|||
args.velocity = unit.GetSpeed(SelectSpeedType(moveFlags));
|
||||
|
||||
if (!args.Validate())
|
||||
return;
|
||||
return 0;
|
||||
|
||||
unit.m_movementInfo.SetMovementFlags((MovementFlags)moveFlags);
|
||||
move_spline.Initialize(args);
|
||||
|
|
@ -91,6 +91,8 @@ namespace Movement
|
|||
data << unit.GetPackGUID();
|
||||
PacketBuilder::WriteMonsterMove(move_spline, data);
|
||||
unit.SendMessageToSet(&data,true);
|
||||
|
||||
return move_spline.Duration();
|
||||
}
|
||||
|
||||
MoveSplineInit::MoveSplineInit(Unit& m) : unit(m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue