mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Merge pull request #14782 from doctaweeks/fixes-for-6.x
Minor fixes for 6.x
This commit is contained in:
@@ -57,9 +57,9 @@ void SignalHandler(const boost::system::error_code& error, int signalNumber);
|
||||
void KeepDatabaseAliveHandler(const boost::system::error_code& error);
|
||||
variables_map GetConsoleArguments(int argc, char** argv, std::string& configFile);
|
||||
|
||||
std::unique_ptr<boost::asio::io_service> _ioService;
|
||||
std::unique_ptr<boost::asio::deadline_timer> _dbPingTimer;
|
||||
uint32 _dbPingInterval;
|
||||
static std::unique_ptr<boost::asio::io_service> _ioService;
|
||||
static std::unique_ptr<boost::asio::deadline_timer> _dbPingTimer;
|
||||
static uint32 _dbPingInterval;
|
||||
LoginDatabaseWorkerPool LoginDatabase;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <set>
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
||||
using G3D::Vector3;
|
||||
using G3D::AABox;
|
||||
|
||||
@@ -128,7 +128,7 @@ class UnitAI
|
||||
|
||||
virtual void InitializeAI() { if (!me->isDead()) Reset(); }
|
||||
|
||||
virtual void Reset() { };
|
||||
virtual void Reset() { }
|
||||
|
||||
// Called when unit is charmed
|
||||
virtual void OnCharmed(bool apply) = 0;
|
||||
|
||||
@@ -847,6 +847,7 @@ class RBACData
|
||||
* @return Success or failure (with reason) to grant the permission
|
||||
*
|
||||
* Example Usage:
|
||||
* @code
|
||||
* // previously defined "RBACData* rbac" with proper initialization
|
||||
* uint32 permissionId = 2;
|
||||
* if (rbac->GrantRole(permissionId) == RBAC_IN_DENIED_LIST)
|
||||
@@ -870,6 +871,7 @@ class RBACData
|
||||
* @return Success or failure (with reason) to deny the permission
|
||||
*
|
||||
* Example Usage:
|
||||
* @code
|
||||
* // previously defined "RBACData* rbac" with proper initialization
|
||||
* uint32 permissionId = 2;
|
||||
* if (rbac->DenyRole(permissionId) == RBAC_ID_DOES_NOT_EXISTS)
|
||||
@@ -894,6 +896,7 @@ class RBACData
|
||||
* @return Success or failure (with reason) to remove the permission
|
||||
*
|
||||
* Example Usage:
|
||||
* @code
|
||||
* // previously defined "RBACData* rbac" with proper initialization
|
||||
* uint32 permissionId = 2;
|
||||
* if (rbac->RevokeRole(permissionId) == RBAC_OK)
|
||||
@@ -984,9 +987,6 @@ class RBACData
|
||||
*
|
||||
* Given a list of permissions, gets all the inherited permissions
|
||||
* @param permissions The list of permissions to expand
|
||||
*
|
||||
* @return new list of permissions containing original permissions and
|
||||
* all other pemissions that are linked to the original ones
|
||||
*/
|
||||
void ExpandPermissions(RBACPermissionContainer& permissions);
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ class BattlegroundQueue
|
||||
class SelectionPool
|
||||
{
|
||||
public:
|
||||
SelectionPool(): PlayerCount(0) { };
|
||||
SelectionPool(): PlayerCount(0) { }
|
||||
void Init();
|
||||
bool AddGroup(GroupQueueInfo* ginfo, uint32 desiredCount);
|
||||
bool KickGroup(uint32 size);
|
||||
|
||||
@@ -42,7 +42,7 @@ class BattlegroundBFGScore final : public BattlegroundScore
|
||||
}
|
||||
}
|
||||
|
||||
void BuildObjectivesBlock(std::vector<int32>& stats)
|
||||
void BuildObjectivesBlock(std::vector<int32>& stats) override
|
||||
{
|
||||
stats.push_back(BasesAssaulted);
|
||||
stats.push_back(BasesDefended);
|
||||
|
||||
@@ -42,7 +42,7 @@ class BattlegroundTPScore final : public BattlegroundScore
|
||||
}
|
||||
}
|
||||
|
||||
void BuildObjectivesBlock(std::vector<int32>& stats)
|
||||
void BuildObjectivesBlock(std::vector<int32>& stats) override
|
||||
{
|
||||
stats.push_back(FlagCaptures);
|
||||
stats.push_back(FlagReturns);
|
||||
|
||||
@@ -208,7 +208,7 @@ class Channel
|
||||
void DeVoice(Player const* player);
|
||||
void JoinNotify(Player const* player);
|
||||
void LeaveNotify(Player const* player);
|
||||
void SetOwnership(bool ownership) { _ownership = ownership; };
|
||||
void SetOwnership(bool ownership) { _ownership = ownership; }
|
||||
static void CleanOldChannelsInDB();
|
||||
|
||||
private:
|
||||
|
||||
@@ -484,9 +484,9 @@ struct Runes
|
||||
|
||||
struct EnchantDuration
|
||||
{
|
||||
EnchantDuration() : item(NULL), slot(MAX_ENCHANTMENT_SLOT), leftduration(0) { };
|
||||
EnchantDuration() : item(NULL), slot(MAX_ENCHANTMENT_SLOT), leftduration(0) { }
|
||||
EnchantDuration(Item* _item, EnchantmentSlot _slot, uint32 _leftduration) : item(_item), slot(_slot),
|
||||
leftduration(_leftduration){ ASSERT(item); };
|
||||
leftduration(_leftduration){ ASSERT(item); }
|
||||
|
||||
Item* item;
|
||||
EnchantmentSlot slot;
|
||||
@@ -2143,7 +2143,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
bool UpdatePosition(const Position &pos, bool teleport = false) { return UpdatePosition(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation(), teleport); }
|
||||
void UpdateUnderwaterState(Map* m, float x, float y, float z) override;
|
||||
|
||||
void SendMessageToSet(WorldPacket const* data, bool self) override {SendMessageToSetInRange(data, GetVisibilityRange(), self); };// overwrite Object::SendMessageToSet
|
||||
void SendMessageToSet(WorldPacket const* data, bool self) override {SendMessageToSetInRange(data, GetVisibilityRange(), self); }// overwrite Object::SendMessageToSet
|
||||
void SendMessageToSetInRange(WorldPacket const* data, float dist, bool self) override; // overwrite Object::SendMessageToSetInRange
|
||||
void SendMessageToSetInRange(WorldPacket const* data, float dist, bool self, bool own_team_only);
|
||||
void SendMessageToSet(WorldPacket const* data, Player const* skipped_rcvr) override;
|
||||
|
||||
@@ -1980,7 +1980,7 @@ class Unit : public WorldObject
|
||||
void TauntApply(Unit* victim);
|
||||
void TauntFadeOut(Unit* taunter);
|
||||
ThreatManager& getThreatManager() { return m_ThreatManager; }
|
||||
void addHatedBy(HostileReference* pHostileReference) { m_HostileRefManager.insertFirst(pHostileReference); };
|
||||
void addHatedBy(HostileReference* pHostileReference) { m_HostileRefManager.insertFirst(pHostileReference); }
|
||||
void removeHatedBy(HostileReference* /*pHostileReference*/) { /* nothing to do yet */ }
|
||||
HostileRefManager& getHostileRefManager() { return m_HostileRefManager; }
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ class GameEventMgr
|
||||
{
|
||||
private:
|
||||
GameEventMgr();
|
||||
~GameEventMgr() { };
|
||||
~GameEventMgr() { }
|
||||
|
||||
public:
|
||||
static GameEventMgr* instance()
|
||||
|
||||
@@ -274,7 +274,7 @@ class Group
|
||||
ObjectGuid GetMasterLooterGuid() const;
|
||||
ItemQualities GetLootThreshold() const;
|
||||
|
||||
uint32 GetDbStoreId() const { return m_dbStoreId; };
|
||||
uint32 GetDbStoreId() const { return m_dbStoreId; }
|
||||
|
||||
// member manipulation methods
|
||||
bool IsMember(ObjectGuid guid) const;
|
||||
|
||||
@@ -182,7 +182,7 @@ class MotionMaster //: private std::stack<MovementGenerator *>
|
||||
void MoveKnockbackFrom(float srcX, float srcY, float speedXY, float speedZ);
|
||||
void MoveJumpTo(float angle, float speedXY, float speedZ);
|
||||
void MoveJump(Position const& pos, float speedXY, float speedZ, uint32 id = EVENT_JUMP)
|
||||
{ MoveJump(pos.m_positionX, pos.m_positionY, pos.m_positionZ, speedXY, speedZ, id); };
|
||||
{ MoveJump(pos.m_positionX, pos.m_positionY, pos.m_positionZ, speedXY, speedZ, id); }
|
||||
void MoveJump(float x, float y, float z, float speedXY, float speedZ, uint32 id = EVENT_JUMP);
|
||||
void MoveCirclePath(float x, float y, float z, float radius, bool clockwise, uint8 stepCount);
|
||||
void MoveFall(uint32 id = 0);
|
||||
|
||||
@@ -334,7 +334,7 @@ class Quest
|
||||
std::string const& GetPortraitGiverName() const { return PortraitGiverName; }
|
||||
std::string const& GetPortraitTurnInText() const { return PortraitTurnInText; }
|
||||
std::string const& GetPortraitTurnInName() const { return PortraitTurnInName; }
|
||||
QuestObjectives const& GetObjectives() const { return Objectives; };
|
||||
QuestObjectives const& GetObjectives() const { return Objectives; }
|
||||
uint32 GetRewMoney() const;
|
||||
uint32 GetRewMoneyDifficulty() const { return RewardMoneyDifficulty; }
|
||||
uint32 GetRewHonor() const { return RewardHonor; }
|
||||
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void Update(uint32 /*diff*/) // correct order goes form 1-6
|
||||
virtual void Update(uint32 /*diff*/) override // correct order goes form 1-6
|
||||
{
|
||||
switch (State)
|
||||
{
|
||||
|
||||
@@ -197,7 +197,7 @@ class boss_archaedas : public CreatureScript
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void JustDied (Unit* /*killer*/)
|
||||
void JustDied (Unit* /*killer*/) override
|
||||
{
|
||||
instance->SetData(DATA_ANCIENT_DOOR, DONE); // open the vault door
|
||||
instance->SetData(DATA_MINIONS, SPECIAL); // deactivate his minions
|
||||
|
||||
@@ -261,13 +261,13 @@ class OPvPCapturePointNA : public OPvPCapturePoint
|
||||
public:
|
||||
OPvPCapturePointNA(OutdoorPvP* pvp);
|
||||
|
||||
bool Update(uint32 diff);
|
||||
bool Update(uint32 diff) override;
|
||||
|
||||
void ChangeState();
|
||||
void ChangeState() override;
|
||||
|
||||
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates& packet);
|
||||
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates& packet) override;
|
||||
|
||||
bool HandleCustomSpell(Player* player, uint32 spellId, GameObject* go);
|
||||
bool HandleCustomSpell(Player* player, uint32 spellId, GameObject* go) override;
|
||||
|
||||
int32 HandleOpenGo(Player* player, GameObject* go) override;
|
||||
|
||||
|
||||
@@ -338,7 +338,7 @@ class spell_q11396_11399_scourging_crystal_controller : public SpellScriptLoader
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_q11396_11399_scourging_crystal_controller_SpellScript();
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
// 43882 Scourging Crystal Controller Dummy
|
||||
@@ -374,7 +374,7 @@ class spell_q11396_11399_scourging_crystal_controller_dummy : public SpellScript
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_q11396_11399_scourging_crystal_controller_dummy_SpellScript();
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
// http://www.wowhead.com/quest=11515 Blood for Blood
|
||||
@@ -855,7 +855,7 @@ class spell_symbol_of_life_dummy : public SpellScriptLoader
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_symbol_of_life_dummy_SpellScript();
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
// http://www.wowhead.com/quest=12659 Scalps!
|
||||
@@ -898,7 +898,7 @@ class spell_q12659_ahunaes_knife : public SpellScriptLoader
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_q12659_ahunaes_knife_SpellScript();
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
enum StoppingTheSpread
|
||||
@@ -944,7 +944,7 @@ class spell_q9874_liquid_fire : public SpellScriptLoader
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_q9874_liquid_fire_SpellScript();
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
enum SalvagingLifesStength
|
||||
@@ -988,7 +988,7 @@ class spell_q12805_lifeblood_dummy : public SpellScriptLoader
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_q12805_lifeblood_dummy_SpellScript();
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -39,8 +39,8 @@ class SHA1Hash
|
||||
void Initialize();
|
||||
void Finalize();
|
||||
|
||||
uint8 *GetDigest(void) { return mDigest; };
|
||||
int GetLength(void) const { return SHA_DIGEST_LENGTH; };
|
||||
uint8 *GetDigest(void) { return mDigest; }
|
||||
int GetLength(void) const { return SHA_DIGEST_LENGTH; }
|
||||
|
||||
private:
|
||||
SHA_CTX mC;
|
||||
|
||||
@@ -38,8 +38,8 @@ class SHA256Hash
|
||||
void Initialize();
|
||||
void Finalize();
|
||||
|
||||
uint8 *GetDigest(void) { return mDigest; };
|
||||
int GetLength(void) const { return SHA256_DIGEST_LENGTH; };
|
||||
uint8 *GetDigest(void) { return mDigest; }
|
||||
int GetLength(void) const { return SHA256_DIGEST_LENGTH; }
|
||||
|
||||
private:
|
||||
SHA256_CTX mC;
|
||||
|
||||
Reference in New Issue
Block a user