mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7612] Move SMSG_TRIGGER_CINEMATIC and SMSG_TRIGGER_MOVIE to functions and use its instead explicit packet creating.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
485eb8adb1
commit
02247d411b
5 changed files with 25 additions and 19 deletions
|
|
@ -5494,6 +5494,20 @@ void Player::SendDirectMessage(WorldPacket *data)
|
|||
GetSession()->SendPacket(data);
|
||||
}
|
||||
|
||||
void Player::SendCinematicStart(uint32 CinematicSequenceId)
|
||||
{
|
||||
WorldPacket data(SMSG_TRIGGER_CINEMATIC, 4);
|
||||
data << uint32(CinematicSequenceId);
|
||||
SendDirectMessage(&data);
|
||||
}
|
||||
|
||||
void Player::SendMovieStart(uint32 MovieId)
|
||||
{
|
||||
WorldPacket data(SMSG_TRIGGER_MOVIE, 4);
|
||||
data << uint32(MovieId);
|
||||
SendDirectMessage(&data);
|
||||
}
|
||||
|
||||
void Player::CheckExploreSystem()
|
||||
{
|
||||
if (!isAlive())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue