diff options
author | megamage <none@none> | 2009-08-25 23:55:37 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-25 23:55:37 -0500 |
commit | 058e6827a69d1d3185109be4ddb8ac235478acf8 (patch) | |
tree | c7503f3e59e4077d4e85aeb366970699d661d179 /src/game/ObjectMgr.cpp | |
parent | 70aea97d53a79f1d17256c36d5e5e8943800f69a (diff) |
*Always remove riding aura when exit vehicle.
*Other misc changes.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 084c7fe0b8d..f1bef6c6808 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1027,7 +1027,20 @@ uint32 ObjectMgr::ChooseDisplayId(uint32 team, const CreatureInfo *cinfo, const return data->displayid; if(!team) - return cinfo->GetRandomValidModelId(); + { + switch(cinfo->Entry) + { + case 28511: // Eye of Acherus + case 33114: // Flame Leviathan Seat (model 24914 chair) + case 33167: // Salvaged Demolisher Mechanic Seat + case 33218: // Pyrite Safety Container + return cinfo->DisplayID_A[0]; + case 33143: // Overload Control Device + return cinfo->DisplayID_H[0]; + default: + return cinfo->GetRandomValidModelId(); + } + } // use defaults from the template uint32 display_id; |