[7995] Check display id correctness for creature and gameobjects. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-13 09:40:44 -05:00
parent ee9c12b480
commit 67a356767d
9 changed files with 82 additions and 56 deletions

View File

@@ -540,15 +540,15 @@ void Object::_BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask
{
if(target->isGameMaster())
{
if(cinfo->Modelid_A1)
*data << cinfo->Modelid_A1;
if(cinfo->DisplayID_A)
*data << cinfo->DisplayID_A;
else
*data << 17519; // world invisible trigger's model
}
else
{
if(cinfo->Modelid_A2)
*data << cinfo->Modelid_A2;
if(cinfo->DisplayID_A2)
*data << cinfo->DisplayID_A2;
else
*data << 11686; // world invisible trigger's model
}