mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 21:50:50 -04:00
Core/Movement
* Implemented a generic way of sending movement packets depending on who controls the unit (player or server controlled) * Added possibility to specify extra elements in movement packets (such as speed, extra passenger guid, collision height and similar) without having to add a special element only for these * Removed Unit::SendMovementFlagUpdate as it was something working only in 3.3.5a and earlier (no serverside HEARTBEAT opcode exists now)
This commit is contained in:
@@ -735,7 +735,7 @@ void SmartAI::SetRun(bool run)
|
||||
void SmartAI::SetFly(bool fly)
|
||||
{
|
||||
me->SetDisableGravity(fly);
|
||||
me->SendMovementFlagUpdate();
|
||||
me->SendMovementDisableGravity();
|
||||
}
|
||||
|
||||
void SmartAI::SetSwim(bool swim)
|
||||
@@ -744,7 +744,7 @@ void SmartAI::SetSwim(bool swim)
|
||||
me->AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
|
||||
else
|
||||
me->RemoveUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
|
||||
me->SendMovementFlagUpdate();
|
||||
me->SendMovementSwimming();
|
||||
}
|
||||
|
||||
void SmartAI::sGossipHello(Player* player)
|
||||
|
||||
Reference in New Issue
Block a user