From d60dbb03e92deca9f9922d08e67d451c81122064 Mon Sep 17 00:00:00 2001 From: schnek Date: Tue, 1 Nov 2022 21:55:15 +0300 Subject: [PATCH] fix register --- src/world/Chat/CommandTableStorage.cpp | 2 +- src/world/Movement/Spline/MovementPacketBuilder.cpp | 4 ++-- src/world/Objects/Units/Players/Player.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/world/Chat/CommandTableStorage.cpp b/src/world/Chat/CommandTableStorage.cpp index 2392e2577..79a19080b 100644 --- a/src/world/Chat/CommandTableStorage.cpp +++ b/src/world/Chat/CommandTableStorage.cpp @@ -382,7 +382,7 @@ void CommandTableStorage::Init() { "featherfall", 'd', &ChatHandler::HandleDebugFeatherFall, "Toggles featherfall move for unit", nullptr }, { "speed", 'd', &ChatHandler::HandleDebugSpeed, "Sets move speed for unit. Usage: .debug speed ", nullptr }, { "castspell", 'd', &ChatHandler::HandleCastSpellCommand, "Casts spell on target.", nullptr }, - { "castself", 'd', &ChatHandler::HandleCastSelfCommand, "Target casts spell  on itself.", nullptr }, + { "castself", 'd', &ChatHandler::HandleCastSelfCommand, "Target casts spell on itself.", nullptr }, { "castspellne", 'd', &ChatHandler::HandleCastSpellNECommand, "Casts spell by spellid on target (only plays animations)", nullptr }, { "aggrorange", 'd', &ChatHandler::HandleAggroRangeCommand, "Shows aggro Range of the selected Creature.", nullptr }, { "knockback", 'd', &ChatHandler::HandleKnockBackCommand, "Knocks you back by .", nullptr }, diff --git a/src/world/Movement/Spline/MovementPacketBuilder.cpp b/src/world/Movement/Spline/MovementPacketBuilder.cpp index 8aa890ce7..7d5fb87d5 100644 --- a/src/world/Movement/Spline/MovementPacketBuilder.cpp +++ b/src/world/Movement/Spline/MovementPacketBuilder.cpp @@ -57,7 +57,7 @@ void PacketBuilder::WriteCommonMonsterMovePart(MoveSpline const& move_spline, By break; } -#if VERSION_STRING > WotLk +#if VERSION_STRING > WotLK // add fake Enter_Cycle flag - needed for client-side cyclic movement (client will erase first spline vertex after first cycle done) splineflags.enter_cycle = move_spline.isCyclic(); #endif @@ -124,7 +124,7 @@ void WriteCatmullRomPath(Spline const& spline, ByteBuffer& data) void WriteCatmullRomCyclicPath(Spline const& spline, ByteBuffer& data) { -#if VERSION_STRING <= WotLk +#if VERSION_STRING <= WotLK if (spline.getPointCount() < 4) sLogger.failure("WriteCatmullRomCyclicPath: size of points is < 3, this will lead to issues!"); diff --git a/src/world/Objects/Units/Players/Player.cpp b/src/world/Objects/Units/Players/Player.cpp index 7620510b9..e29e8e22e 100644 --- a/src/world/Objects/Units/Players/Player.cpp +++ b/src/world/Objects/Units/Players/Player.cpp @@ -8593,7 +8593,7 @@ void Player::setMover(Unit* target) m_session->m_MoverWoWGuid.Init(target->getGuid()); mControledUnit = target; -#if VERSION_STRING > WotLk +#if VERSION_STRING > WotLK ObjectGuid guid = target->getGuid(); WorldPacket data(SMSG_MOVE_SET_ACTIVE_MOVER, 9);