diff options
author | Brian <runningnak3d@gmail.com> | 2009-12-14 11:02:44 -0700 |
---|---|---|
committer | Brian <runningnak3d@gmail.com> | 2009-12-14 11:02:44 -0700 |
commit | 45d74f8e05b0442a08713c12287f6becda34f892 (patch) | |
tree | b3710256d2d806c277f651b953e11b7ba27bb216 /src/game/Totem.cpp | |
parent | 51a1a0aca9762947e3b3cdecd881b3f538227f47 (diff) |
* Add support for proper team model IDs for totems.
* They are no longer random.
* Thanks to Zor for original patch
--HG--
branch : trunk
Diffstat (limited to 'src/game/Totem.cpp')
-rw-r--r-- | src/game/Totem.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/Totem.cpp b/src/game/Totem.cpp index 106efdfd5a8..c7ea9b1f123 100644 --- a/src/game/Totem.cpp +++ b/src/game/Totem.cpp @@ -63,6 +63,20 @@ void Totem::InitStats(uint32 duration) CreatureModelInfo const *minfo = objmgr.GetCreatureModelRandomGender(display_id); if (minfo) display_id = minfo->modelid; + switch (((Player*)m_owner)->GetTeam()) + { + case ALLIANCE: + display_id = cinfo->Modelid1; + break; + case HORDE: + if (cinfo->Modelid3) + display_id = cinfo->Modelid3; + else + display_id = cinfo->Modelid1; + break; + default: + break; + } SetDisplayId(display_id); } |