Changeset 126 for trunk/src/game/Totem.cpp
- Timestamp:
- 11/19/08 13:38:32 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Totem.cpp
r123 r126 60 60 if (owner->GetTypeId()==TYPEID_PLAYER && cinfo) 61 61 { 62 if (uint32 modelid = cinfo->GetRandomValidModelId()) 62 uint32 modelid = 0; 63 if(((Player*)owner)->GetTeam() == HORDE) 64 { 65 if(cinfo->Modelid3) 66 modelid = cinfo->Modelid3; 67 else if(cinfo->Modelid4) 68 modelid = cinfo->Modelid4; 69 } 70 else 71 { 72 if(cinfo->Modelid1) 73 modelid = cinfo->Modelid1; 74 else if(cinfo->Modelid2) 75 modelid = cinfo->Modelid2; 76 } 77 if (modelid) 63 78 SetDisplayId(modelid); 64 79 else 65 { 66 sLog.outErrorDb("No displayid found for the totem with the entry %u! Can't summon it!", GetEntry()); 67 return; 68 } 80 sLog.outErrorDb("Totem::Summon: Missing modelid information for entry %u, team %u, totem will use default values.",GetEntry(),((Player*)owner)->GetTeam()); 69 81 } 70 82