[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
+8 -8
View File
@@ -62,17 +62,17 @@ void Totem::InitStats(uint32 duration)
uint32 modelid = 0;
if(((Player*)m_owner)->GetTeam() == HORDE)
{
if(cinfo->Modelid_H1)
modelid = cinfo->Modelid_H1;
else if(cinfo->Modelid_H2)
modelid = cinfo->Modelid_H2;
if(cinfo->DisplayID_H)
modelid = cinfo->DisplayID_H;
else if(cinfo->DisplayID_H2)
modelid = cinfo->DisplayID_H2;
}
else
{
if(cinfo->Modelid_A1)
modelid = cinfo->Modelid_A1;
else if(cinfo->Modelid_A2)
modelid = cinfo->Modelid_A2;
if(cinfo->DisplayID_A)
modelid = cinfo->DisplayID_A;
else if(cinfo->DisplayID_A2)
modelid = cinfo->DisplayID_A2;
}
if (modelid)
SetDisplayId(modelid);