Core/WorldPacket: Only activate GOs if in GM mode and not make them sparkle.

Got reports of blindness in GM mode.

--HG--
branch : trunk
This commit is contained in:
runningnak3d
2010-10-08 17:48:44 -06:00
parent e0b876d78b
commit 26d0598b9a
+18 -1
View File
@@ -682,15 +682,32 @@ void Object::_BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask
switch(((GameObject*)this)->GetGoType()) switch(((GameObject*)this)->GetGoType())
{ {
case GAMEOBJECT_TYPE_CHEST: case GAMEOBJECT_TYPE_CHEST:
// enable quest object. Represent 9, but 1 for client before 2.3.0 if (target->isGameMaster())
{
*data << uint16(1);
*data << uint16(-1);
}
else
*data << uint16(9); *data << uint16(9);
*data << uint16(-1); *data << uint16(-1);
break; break;
case GAMEOBJECT_TYPE_GENERIC: case GAMEOBJECT_TYPE_GENERIC:
if (target->isGameMaster())
{
*data << uint16(0);
*data << uint16(-1);
}
else
*data << uint16(8); *data << uint16(8);
*data << uint16(-1); *data << uint16(-1);
break; break;
case GAMEOBJECT_TYPE_GOOBER: case GAMEOBJECT_TYPE_GOOBER:
if (target->isGameMaster())
{
*data << uint16(1);
*data << uint16(-1);
}
else
*data << uint16(9); *data << uint16(9);
*data << uint16(-1); *data << uint16(-1);
break; break;