diff options
author | megamage <none@none> | 2009-04-05 16:25:00 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-05 16:25:00 -0500 |
commit | 5acc0c057b247142a85cc94363afefa8fdefa5a1 (patch) | |
tree | 7e7625f9945d0fed30c661b133dff363b03489fb /src/game/GameObject.cpp | |
parent | 81ef5e632fcfe9a565eebfea9556bde78c0a22e3 (diff) |
[7612] Move SMSG_TRIGGER_CINEMATIC and SMSG_TRIGGER_MOVIE to functions and use its instead explicit packet creating. Author: NoFantasy
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r-- | src/game/GameObject.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 5c945000579..def17130372 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -1050,12 +1050,9 @@ void GameObject::Use(Unit* user) Player* player = (Player*)user; - if(info->camera.cinematicId) - { - WorldPacket data(SMSG_TRIGGER_CINEMATIC, 4); - data << info->camera.cinematicId; - player->GetSession()->SendPacket(&data); - } + if (info->camera.cinematicId) + player->SendCinematicStart(info->camera.cinematicId); + return; } //fishing bobber |