Core/Movement: Don't send heartbeat message only to self on movementflag update. Should solve some recent issues with vehicles.
This commit is contained in:
@@ -14643,7 +14643,7 @@ void Unit::SendMovementFlagUpdate()
|
||||
{
|
||||
WorldPacket data;
|
||||
BuildHeartBeatMsg(&data);
|
||||
SendMessageToSet(&data, true);
|
||||
SendMessageToSet(&data, false);
|
||||
}
|
||||
|
||||
bool Unit::IsSitState() const
|
||||
@@ -17050,9 +17050,7 @@ void Unit::_ExitVehicle(Position const* exitPosition)
|
||||
if (Player* player = ToPlayer())
|
||||
player->ResummonPetTemporaryUnSummonedIfAny();
|
||||
|
||||
WorldPacket data2;
|
||||
BuildHeartBeatMsg(&data2);
|
||||
SendMessageToSet(&data2, true);
|
||||
SendMovementFlagUpdate();
|
||||
|
||||
if (vehicle->GetBase()->HasUnitTypeMask(UNIT_MASK_MINION))
|
||||
if (((Minion*)vehicle->GetBase())->GetOwner() == this)
|
||||
|
||||
Reference in New Issue
Block a user