Fix for bug with usage of IsOrigin, bug from when i was just doing glm::dot(pos, pos) == 0

This commit is contained in:
KimLS 2015-01-24 12:01:42 -08:00
parent 8d30e4b8a6
commit 73c6a0bb1d

View File

@ -4760,7 +4760,7 @@ void Client::SummonAndRezzAllCorpses()
void Client::SummonAllCorpses(const glm::vec4& position)
{
auto summonLocation = position;
if(IsOrigin(position) == 0 && position.w == 0.0f)
if(IsOrigin(position) && position.w == 0.0f)
summonLocation = GetPosition();
ServerPacket *Pack = new ServerPacket(ServerOP_DepopAllPlayersCorpses, sizeof(ServerDepopAllPlayersCorpses_Struct));