mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-10 09:13:52 +00:00
[Cleanup] Remove MakeSpawnUpdateNoDelta from mob.cpp/mob.h (#3816)
# Notes - This is unused.
This commit is contained in:
parent
605502cd9d
commit
b3f6a8c55f
15
zone/mob.cpp
15
zone/mob.cpp
@ -1599,21 +1599,6 @@ void Mob::SentPositionPacket(float dx, float dy, float dz, float dh, int anim, b
|
||||
entity_list.QueueClients(this, &outapp, send_to_self == false, false);
|
||||
}
|
||||
|
||||
// this is for SendPosition()
|
||||
void Mob::MakeSpawnUpdateNoDelta(PlayerPositionUpdateServer_Struct *spu) {
|
||||
memset(spu, 0xff, sizeof(PlayerPositionUpdateServer_Struct));
|
||||
spu->spawn_id = GetID();
|
||||
spu->x_pos = FloatToEQ19(m_Position.x);
|
||||
spu->y_pos = FloatToEQ19(m_Position.y);
|
||||
spu->z_pos = FloatToEQ19(m_Position.z);
|
||||
spu->delta_x = FloatToEQ13(0);
|
||||
spu->delta_y = FloatToEQ13(0);
|
||||
spu->delta_z = FloatToEQ13(0);
|
||||
spu->heading = FloatToEQ12(m_Position.w);
|
||||
spu->animation = 0;
|
||||
spu->delta_heading = FloatToEQ10(0);
|
||||
}
|
||||
|
||||
// this is for SendPosUpdate()
|
||||
void Mob::MakeSpawnUpdate(PlayerPositionUpdateServer_Struct* spu) {
|
||||
spu->spawn_id = GetID();
|
||||
|
||||
@ -716,7 +716,6 @@ public:
|
||||
virtual void GMMove(float x, float y, float z, float heading = 0.01, bool save_guard_spot = true);
|
||||
virtual void GMMove(const glm::vec4 &position, bool save_guard_spot = true);
|
||||
void SetDelta(const glm::vec4& delta);
|
||||
void MakeSpawnUpdateNoDelta(PlayerPositionUpdateServer_Struct* spu);
|
||||
void MakeSpawnUpdate(PlayerPositionUpdateServer_Struct* spu);
|
||||
void SentPositionPacket(float dx, float dy, float dz, float dh, int anim, bool send_to_self = false);
|
||||
virtual void StopMoving();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user