aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMitchesD <majklprofik@seznam.cz>2015-07-22 20:03:07 +0200
committerMitchesD <majklprofik@seznam.cz>2015-07-22 20:03:07 +0200
commit8167fb433e82d059205510445eef334a1248c550 (patch)
tree09144a425408dfeddfa36793e542291d09792f2d /src
parent1e6c8159dfd759043e7dbe61800215c049d4a7e8 (diff)
Core/Scripts: converted leftover of SMSG_CONTROL_UPDATE
* forgot in my last commit, thanks joschi for notice
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp
index 816895684f1..5368dde12c6 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp
@@ -19,6 +19,7 @@
#include "CreatureTextMgr.h"
#include "GridNotifiersImpl.h"
#include "GossipDef.h"
+#include "MovementPackets.h"
#include "MoveSpline.h"
#include "MoveSplineInit.h"
#include "PassiveAI.h"
@@ -2083,7 +2084,7 @@ class spell_igb_overheat : public SpellScriptLoader
return GetUnitOwner()->IsVehicle();
}
- void SendClientControl(uint8 value)
+ void SendClientControl(bool value)
{
if (Vehicle* vehicle = GetUnitOwner()->GetVehicleKit())
{
@@ -2091,10 +2092,10 @@ class spell_igb_overheat : public SpellScriptLoader
{
if (Player* player = passenger->ToPlayer())
{
- WorldPacket data(SMSG_CONTROL_UPDATE, GetUnitOwner()->GetPackGUID().size() + 1);
- data << GetUnitOwner()->GetPackGUID();
- data << uint8(value);
- player->GetSession()->SendPacket(&data);
+ WorldPackets::Movement::ControlUpdate data;
+ data.Guid = GetUnitOwner()->GetGUID();
+ data.On = value;
+ player->GetSession()->SendPacket(data.Write());
}
}
}
@@ -2102,12 +2103,12 @@ class spell_igb_overheat : public SpellScriptLoader
void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
- SendClientControl(0);
+ SendClientControl(false);
}
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
- SendClientControl(1);
+ SendClientControl(true);
}
void Register() override