From 63c8aea0fd18449920edd63c3d386cc22e492f53 Mon Sep 17 00:00:00 2001 From: Antz Date: Fri, 1 Jan 2021 00:07:23 +0000 Subject: [PATCH] some minor styling fixes --- src/game/BattleGround/BattleGround.h | 2 +- src/game/Object/UnitEvents.h | 22 ++++++++++++++++++---- src/game/WorldHandlers/Map.cpp | 3 +-- src/shared/Auth/AuthCrypt.h | 6 +++--- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/game/BattleGround/BattleGround.h b/src/game/BattleGround/BattleGround.h index 713c85f6..c44d36d1 100644 --- a/src/game/BattleGround/BattleGround.h +++ b/src/game/BattleGround/BattleGround.h @@ -1243,7 +1243,7 @@ class BattleGround bool IsPlayerInBattleGround(ObjectGuid guid); /* virtual score-array - get's used in bg-subclasses */ - int32 m_TeamScores[PVP_TEAM_COUNT]; /**< TODO */ + int32 m_TeamScores[PVP_TEAM_COUNT]; /** * @brief diff --git a/src/game/Object/UnitEvents.h b/src/game/Object/UnitEvents.h index 320f92c1..06dd28a3 100644 --- a/src/game/Object/UnitEvents.h +++ b/src/game/Object/UnitEvents.h @@ -93,13 +93,27 @@ class ThreatRefStatusChangeEvent : public UnitBaseEvent }; ThreatManager* iThreatManager; public: - ThreatRefStatusChangeEvent(uint32 pType) : UnitBaseEvent(pType) { iHostileReference = NULL; } + ThreatRefStatusChangeEvent(uint32 pType) : UnitBaseEvent(pType) + { + iHostileReference = NULL; + } - ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference) : UnitBaseEvent(pType) { iHostileReference = pHostileReference; } + ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference) : UnitBaseEvent(pType) + { + iHostileReference = pHostileReference; + } - ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference, float pValue) : UnitBaseEvent(pType) { iHostileReference = pHostileReference; iFValue = pValue; } + ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference, float pValue) : UnitBaseEvent(pType) + { + iHostileReference = pHostileReference; + iFValue = pValue; + } - ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference, bool pValue) : UnitBaseEvent(pType) { iHostileReference = pHostileReference; iBValue = pValue; } + ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference, bool pValue) : UnitBaseEvent(pType) + { + iHostileReference = pHostileReference; + iBValue = pValue; + } int32 getIValue() const { return iIValue; } diff --git a/src/game/WorldHandlers/Map.cpp b/src/game/WorldHandlers/Map.cpp index 7cb74508..e83c12b6 100644 --- a/src/game/WorldHandlers/Map.cpp +++ b/src/game/WorldHandlers/Map.cpp @@ -811,8 +811,7 @@ Map::Remove(T* obj, bool remove) } } -void -Map::PlayerRelocation(Player* player, float x, float y, float z, float orientation) +void Map::PlayerRelocation(Player* player, float x, float y, float z, float orientation) { MANGOS_ASSERT(player); diff --git a/src/shared/Auth/AuthCrypt.h b/src/shared/Auth/AuthCrypt.h index e70393b8..b13330b0 100644 --- a/src/shared/Auth/AuthCrypt.h +++ b/src/shared/Auth/AuthCrypt.h @@ -49,9 +49,9 @@ class AuthCrypt ~AuthCrypt(); /** - * @brief - * - */ + * @brief + * + */ void Init(); /**