From 5acc0c057b247142a85cc94363afefa8fdefa5a1 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 5 Apr 2009 16:25:00 -0500 Subject: [7612] Move SMSG_TRIGGER_CINEMATIC and SMSG_TRIGGER_MOVIE to functions and use its instead explicit packet creating. Author: NoFantasy --HG-- branch : trunk --- src/game/GameObject.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/game/GameObject.cpp') 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 -- cgit v1.2.3