Skip to content

Commit

Permalink
Merge TrinityCore 3.3.5 to ElunaTrinityWotlk [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Rochet2 committed Oct 30, 2024
2 parents 4676ea6 + 6180393 commit c56abf1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/updates/world/3.3.5/2024_10_29_00_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--
UPDATE `gossip_menu_option` SET `OptionBroadcastTextID` = 2924 WHERE `OptionBroadcastTextID` = 50546 AND `OptionID` = 1;
2 changes: 2 additions & 0 deletions sql/updates/world/3.3.5/2024_10_29_01_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--
UPDATE `gossip_menu_option` SET `OptionBroadcastTextID` = 2924 WHERE `OptionBroadcastTextID` = 50546;
6 changes: 6 additions & 0 deletions src/server/game/Maps/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3002,6 +3002,9 @@ void Map::SendInitTransports(Player* player)
if (*i != player->GetTransport())
(*i)->BuildCreateUpdateBlockForPlayer(&transData, player);

if (!transData.HasData())
return;

WorldPacket packet;
transData.BuildPacket(&packet);
player->SendDirectMessage(&packet);
Expand All @@ -3015,6 +3018,9 @@ void Map::SendRemoveTransports(Player* player)
if (*i != player->GetTransport())
(*i)->BuildOutOfRangeUpdateBlock(&transData);

if (!transData.HasData())
return;

WorldPacket packet;
transData.BuildPacket(&packet);
player->SendDirectMessage(&packet);
Expand Down

0 comments on commit c56abf1

Please sign in to comment.