mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Merge branch 'master' of github.com:EQEmu/Server into wp
This commit is contained in:
+16
-2
@@ -1375,7 +1375,7 @@ void Mob::SendHPUpdate(bool skip_self /*= false*/, bool force_update_all /*= fal
|
||||
if(IsClient()){
|
||||
Raid *raid = entity_list.GetRaidByClient(CastToClient());
|
||||
if (raid)
|
||||
raid->SendHPPacketsFrom(this);
|
||||
raid->SendHPManaEndPacketsFrom(this);
|
||||
}
|
||||
|
||||
/* Pet - Update master - group and raid if exists */
|
||||
@@ -1388,7 +1388,7 @@ void Mob::SendHPUpdate(bool skip_self /*= false*/, bool force_update_all /*= fal
|
||||
|
||||
Raid *raid = entity_list.GetRaidByClient(GetOwner()->CastToClient());
|
||||
if(raid)
|
||||
raid->SendHPPacketsFrom(this);
|
||||
raid->SendHPManaEndPacketsFrom(this);
|
||||
}
|
||||
|
||||
/* Send to pet */
|
||||
@@ -1447,6 +1447,20 @@ void Mob::SendPosition() {
|
||||
safe_delete(app);
|
||||
}
|
||||
|
||||
void Mob::SendPositionUpdateToClient(Client *client) {
|
||||
auto app = new EQApplicationPacket(OP_ClientUpdate, sizeof(PlayerPositionUpdateServer_Struct));
|
||||
PlayerPositionUpdateServer_Struct* spawn_update = (PlayerPositionUpdateServer_Struct*)app->pBuffer;
|
||||
|
||||
if(this->IsMoving())
|
||||
MakeSpawnUpdate(spawn_update);
|
||||
else
|
||||
MakeSpawnUpdateNoDelta(spawn_update);
|
||||
|
||||
client->QueuePacket(app, false);
|
||||
|
||||
safe_delete(app);
|
||||
}
|
||||
|
||||
/* Position updates for mobs on the move */
|
||||
void Mob::SendPositionUpdate(uint8 iSendToSelf) {
|
||||
auto app = new EQApplicationPacket(OP_ClientUpdate, sizeof(PlayerPositionUpdateServer_Struct));
|
||||
|
||||
Reference in New Issue
Block a user