mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
Cleanup Operator padding
This commit is contained in:
parent
9141299127
commit
e32b9953a1
264 changed files with 6715 additions and 6715 deletions
|
|
@ -54,7 +54,7 @@ namespace Movement
|
|||
{
|
||||
MoveSpline& move_spline = *unit.movespline;
|
||||
|
||||
Location real_position(unit.GetPositionX(),unit.GetPositionY(),unit.GetPositionZ(),unit.GetOrientation());
|
||||
Location real_position(unit.GetPositionX(), unit.GetPositionY(), unit.GetPositionZ(), unit.GetOrientation());
|
||||
// there is a big chane that current position is unknown if current state is not finalized, need compute it
|
||||
// this also allows calculate spline position and update map position in much greater intervals
|
||||
if (!move_spline.Finalized())
|
||||
|
|
@ -76,7 +76,7 @@ namespace Movement
|
|||
else
|
||||
moveFlags &= ~MOVEFLAG_WALK_MODE;
|
||||
|
||||
moveFlags |= (MOVEFLAG_SPLINE_ENABLED|MOVEFLAG_FORWARD);
|
||||
moveFlags |= (MOVEFLAG_SPLINE_ENABLED | MOVEFLAG_FORWARD);
|
||||
|
||||
if (args.velocity == 0.f)
|
||||
args.velocity = unit.GetSpeed(SelectSpeedType(moveFlags));
|
||||
|
|
@ -90,7 +90,7 @@ namespace Movement
|
|||
WorldPacket data(SMSG_MONSTER_MOVE, 64);
|
||||
data << unit.GetPackGUID();
|
||||
PacketBuilder::WriteMonsterMove(move_spline, data);
|
||||
unit.SendMessageToSet(&data,true);
|
||||
unit.SendMessageToSet(&data, true);
|
||||
|
||||
return move_spline.Duration();
|
||||
}
|
||||
|
|
@ -99,7 +99,7 @@ namespace Movement
|
|||
{
|
||||
// mix existing state into new
|
||||
args.flags.walkmode = unit.m_movementInfo.HasMovementFlag(MOVEFLAG_WALK_MODE);
|
||||
args.flags.flying = unit.m_movementInfo.HasMovementFlag((MovementFlags)(MOVEFLAG_FLYING|MOVEFLAG_LEVITATING));
|
||||
args.flags.flying = unit.m_movementInfo.HasMovementFlag((MovementFlags)(MOVEFLAG_FLYING | MOVEFLAG_LEVITATING));
|
||||
}
|
||||
|
||||
void MoveSplineInit::SetFacing(const Unit* target)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue