simplified SummonAllCorpses

This commit is contained in:
Arthur Ice 2014-12-02 19:29:43 -08:00
parent ad506ece4d
commit 7c211e1e11

View File

@ -4945,7 +4945,7 @@ void Client::SummonAndRezzAllCorpses()
void Client::SummonAllCorpses(const xyz_heading& position) void Client::SummonAllCorpses(const xyz_heading& position)
{ {
auto summonLocation = position; auto summonLocation = position;
if(position.m_X == 0.0f && position.m_Y == 0.0f && position.m_Z == 0.0f && position.m_Heading == 0.0f) if(position.isOrigin() && position.m_Heading == 0.0f)
summonLocation = GetPosition(); summonLocation = GetPosition();
ServerPacket *Pack = new ServerPacket(ServerOP_DepopAllPlayersCorpses, sizeof(ServerDepopAllPlayersCorpses_Struct)); ServerPacket *Pack = new ServerPacket(ServerOP_DepopAllPlayersCorpses, sizeof(ServerDepopAllPlayersCorpses_Struct));