Remove LOTS of compile warnings
--HG-- branch : trunk
This commit is contained in:
@@ -258,7 +258,6 @@ bool AchievementCriteriaData::IsValid(AchievementCriteriaEntry const* criteria)
|
||||
sLog.outErrorDb("Table `achievement_criteria_data` (Entry: %u Type: %u) have data for not supported data type (%u), ignore.", criteria->ID, criteria->requiredType,dataType);
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AchievementCriteriaData::Meets(uint32 criteria_id, Player const* source, Unit const* target, uint32 miscvalue1 /*= 0*/) const
|
||||
|
||||
@@ -185,11 +185,11 @@ void AuctionHouseBot::addNewAuctions(Player *AHBplayer, AHBConfig *config)
|
||||
uint32 purpleIcount = config->GetPercents(AHB_PURPLE_I);
|
||||
uint32 orangeIcount = config->GetPercents(AHB_ORANGE_I);
|
||||
uint32 yellowIcount = config->GetPercents(AHB_YELLOW_I);
|
||||
uint32 total = greyTGcount + whiteTGcount + greenTGcount + blueTGcount
|
||||
/* uint32 total = greyTGcount + whiteTGcount + greenTGcount + blueTGcount
|
||||
+ purpleTGcount + orangeTGcount + yellowTGcount
|
||||
+ whiteIcount + greenIcount + blueIcount + purpleIcount
|
||||
+ orangeIcount + yellowIcount;
|
||||
|
||||
*/
|
||||
uint32 greyTGoods = config->GetItemCounts(AHB_GREY_TG);
|
||||
uint32 whiteTGoods = config->GetItemCounts(AHB_WHITE_TG);
|
||||
uint32 greenTGoods = config->GetItemCounts(AHB_GREEN_TG);
|
||||
@@ -1434,7 +1434,7 @@ void AuctionHouseBot::DecrementItemCounts(AuctionEntry* ah, uint32 item_template
|
||||
|
||||
void AuctionHouseBot::Commands(uint32 command, uint32 ahMapID, uint32 col, char* args)
|
||||
{
|
||||
AHBConfig *config;
|
||||
AHBConfig *config = NULL;
|
||||
switch (ahMapID)
|
||||
{
|
||||
case 2:
|
||||
@@ -1751,7 +1751,7 @@ void AuctionHouseBot::LoadValues(AHBConfig *config)
|
||||
sLog.outString("maxStackOrange = %u", config->GetMaxStack(AHB_ORANGE));
|
||||
sLog.outString("maxStackYellow = %u", config->GetMaxStack(AHB_YELLOW));
|
||||
}
|
||||
AuctionHouseEntry const* ahEntry = auctionmgr.GetAuctionHouseEntry(config->GetAHFID());
|
||||
//AuctionHouseEntry const* ahEntry = auctionmgr.GetAuctionHouseEntry(config->GetAHFID());
|
||||
AuctionHouseObject* auctionHouse = auctionmgr.GetAuctionsMap(config->GetAHFID());
|
||||
|
||||
config->ResetItemCounts();
|
||||
|
||||
@@ -1474,7 +1474,7 @@ void BattleGround::RemovePlayerFromResurrectQueue(uint64 player_guid)
|
||||
}
|
||||
}
|
||||
|
||||
bool BattleGround::AddObject(uint32 type, uint32 entry, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime)
|
||||
bool BattleGround::AddObject(uint32 type, uint32 entry, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3, uint32 /*respawnTime*/)
|
||||
{
|
||||
Map *map = GetBgMap();
|
||||
if (!map)
|
||||
@@ -1600,7 +1600,7 @@ void BattleGround::SpawnBGObject(uint32 type, uint32 respawntime)
|
||||
}
|
||||
}
|
||||
|
||||
Creature* BattleGround::AddCreature(uint32 entry, uint32 type, uint32 teamval, float x, float y, float z, float o, uint32 respawntime)
|
||||
Creature* BattleGround::AddCreature(uint32 entry, uint32 type, uint32 teamval, float x, float y, float z, float o, uint32 /*respawntime*/)
|
||||
{
|
||||
Map * map = GetBgMap();
|
||||
if (!map)
|
||||
@@ -1901,7 +1901,7 @@ int32 BattleGround::GetObjectType(uint64 guid)
|
||||
return -1;
|
||||
}
|
||||
|
||||
void BattleGround::HandleKillUnit(Creature *creature, Player *killer)
|
||||
void BattleGround::HandleKillUnit(Creature * /*creature*/, Player * /*killer*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -500,8 +500,8 @@ class BattleGround
|
||||
virtual void EventPlayerCapturedFlag(Player* /*player*/) {}
|
||||
void EventPlayerLoggedIn(Player* player, uint64 plr_guid);
|
||||
void EventPlayerLoggedOut(Player* player);
|
||||
virtual void EventPlayerDamagedGO(Player* /*player*/, GameObject* /*target_obj*/, uint32 /*eventId*/) {}
|
||||
virtual void EventPlayerUsedGO(Player* player, GameObject* go){}
|
||||
virtual void EventPlayerDamagedGO(Player* /*player*/, GameObject* /*target_obj*/, uint32 /*eventId*/) {}
|
||||
virtual void EventPlayerUsedGO(Player* /*player*/, GameObject* /*go*/){}
|
||||
|
||||
/* Death related */
|
||||
virtual WorldSafeLocsEntry const* GetClosestGraveYard(Player* player);
|
||||
|
||||
@@ -708,9 +708,7 @@ void BattleGroundAV::PopulateNode(BG_AV_Nodes node)
|
||||
|
||||
}
|
||||
for (uint8 i=0; i<4; i++)
|
||||
{
|
||||
Creature* cr = AddAVCreature(creatureid,c_place+i);
|
||||
}
|
||||
AddAVCreature(creatureid,c_place+i);
|
||||
}
|
||||
void BattleGroundAV::DePopulateNode(BG_AV_Nodes node)
|
||||
{
|
||||
|
||||
@@ -77,7 +77,7 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket & recv_data)
|
||||
uint32 instanceId;
|
||||
uint8 joinAsGroup;
|
||||
bool isPremade = false;
|
||||
Group * grp;
|
||||
Group * grp = NULL;
|
||||
|
||||
recv_data >> guid; // battlemaster guid
|
||||
recv_data >> bgTypeId_; // battleground type id (DBC id)
|
||||
@@ -134,6 +134,18 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket & recv_data)
|
||||
// check if has free queue slots
|
||||
if (!_player->HasFreeBattleGroundQueueId())
|
||||
return;
|
||||
BattleGroundQueue& bgQueue = sBattleGroundMgr.m_BattleGroundQueues[bgQueueTypeId];
|
||||
|
||||
GroupQueueInfo * ginfo = bgQueue.AddGroup(_player, NULL, bgTypeId, bracketEntry, 0, false, isPremade, 0);
|
||||
uint32 avgTime = bgQueue.GetAverageQueueWaitTime(ginfo, bracketEntry->GetBracketId());
|
||||
// already checked if queueSlot is valid, now just get it
|
||||
uint32 queueSlot = _player->AddBattleGroundQueueId(bgQueueTypeId);
|
||||
|
||||
WorldPacket data;
|
||||
// send status packet (in queue)
|
||||
sBattleGroundMgr.BuildBattleGroundStatusPacket(&data, bg, queueSlot, STATUS_WAIT_QUEUE, avgTime, 0, ginfo->ArenaType);
|
||||
SendPacket(&data);
|
||||
sLog.outDebug("Battleground: player joined queue for bg queue type %u bg type %u: GUID %u, NAME %s",bgQueueTypeId,bgTypeId,_player->GetGUIDLow(), _player->GetName());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -145,13 +157,8 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket & recv_data)
|
||||
return;
|
||||
err = grp->CanJoinBattleGroundQueue(bg, bgQueueTypeId, 0, bg->GetMaxPlayersPerTeam(), false, 0);
|
||||
isPremade = (grp->GetMembersCount() >= bg->GetMinPlayersPerTeam());
|
||||
}
|
||||
// if we're here, then the conditions to join a bg are met. We can proceed in joining.
|
||||
|
||||
// _player->GetGroup() was already checked, grp is already initialized
|
||||
BattleGroundQueue& bgQueue = sBattleGroundMgr.m_BattleGroundQueues[bgQueueTypeId];
|
||||
if (joinAsGroup /* && _player->GetGroup()*/)
|
||||
{
|
||||
BattleGroundQueue& bgQueue = sBattleGroundMgr.m_BattleGroundQueues[bgQueueTypeId];
|
||||
GroupQueueInfo * ginfo;
|
||||
uint32 avgTime;
|
||||
|
||||
@@ -187,19 +194,7 @@ void WorldSession::HandleBattlemasterJoinOpcode(WorldPacket & recv_data)
|
||||
sLog.outDebug("Battleground: player joined queue for bg queue type %u bg type %u: GUID %u, NAME %s",bgQueueTypeId,bgTypeId,member->GetGUIDLow(), member->GetName());
|
||||
}
|
||||
sLog.outDebug("Battleground: group end");
|
||||
}
|
||||
else
|
||||
{
|
||||
GroupQueueInfo * ginfo = bgQueue.AddGroup(_player, NULL, bgTypeId, bracketEntry, 0, false, isPremade, 0);
|
||||
uint32 avgTime = bgQueue.GetAverageQueueWaitTime(ginfo, bracketEntry->GetBracketId());
|
||||
// already checked if queueSlot is valid, now just get it
|
||||
uint32 queueSlot = _player->AddBattleGroundQueueId(bgQueueTypeId);
|
||||
|
||||
WorldPacket data;
|
||||
// send status packet (in queue)
|
||||
sBattleGroundMgr.BuildBattleGroundStatusPacket(&data, bg, queueSlot, STATUS_WAIT_QUEUE, avgTime, 0, ginfo->ArenaType);
|
||||
SendPacket(&data);
|
||||
sLog.outDebug("Battleground: player joined queue for bg queue type %u bg type %u: GUID %u, NAME %s",bgQueueTypeId,bgTypeId,_player->GetGUIDLow(), _player->GetName());
|
||||
}
|
||||
sBattleGroundMgr.ScheduleQueueUpdate(0, 0, bgQueueTypeId, bgTypeId, bracketEntry->GetBracketId());
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ void BattleGroundIC::SpawnLeader(uint32 teamid)
|
||||
AddCreature(34922, 1, HORDE, 1264.42f, -766.80f, 48.91f, 3.28f, 10*MINUTE);
|
||||
}
|
||||
|
||||
void BattleGroundIC::HandleKillUnit(Creature *unit, Player *killer)
|
||||
void BattleGroundIC::HandleKillUnit(Creature *unit, Player * /*killer*/)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
@@ -124,7 +124,8 @@ void BattleGroundIC::EndBattleGround(uint32 winner)
|
||||
{
|
||||
BattleGround::EndBattleGround(winner);
|
||||
}
|
||||
void BattleGroundIC::EventPlayerClickedOnFlag(Player *source, GameObject* /*target_obj*/)
|
||||
|
||||
void BattleGroundIC::EventPlayerClickedOnFlag(Player * /*source*/, GameObject* /*target_obj*/)
|
||||
{
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
|
||||
@@ -420,7 +420,7 @@ void BattleGroundSA::TeleportPlayers()
|
||||
}
|
||||
}
|
||||
|
||||
void BattleGroundSA::EventPlayerDamagedGO(Player* plr, GameObject* go, uint32 event)
|
||||
void BattleGroundSA::EventPlayerDamagedGO(Player* plr, GameObject* /*go*/, uint32 event)
|
||||
{
|
||||
switch(event)
|
||||
{
|
||||
@@ -565,7 +565,7 @@ void BattleGroundSA::SendTime()
|
||||
UpdateWorldState(BG_SA_TIMER_SEC_DECS, ((end_of_round%60000)%10000)/1000);
|
||||
}
|
||||
|
||||
void BattleGroundSA::EventPlayerClickedOnFlag(Player *Source, GameObject* target_obj)
|
||||
void BattleGroundSA::EventPlayerClickedOnFlag(Player * /*Source*/, GameObject* target_obj)
|
||||
{
|
||||
switch(target_obj->GetEntry())
|
||||
{
|
||||
|
||||
@@ -443,7 +443,7 @@ void BattleGroundWS::EventPlayerClickedOnFlag(Player *Source, GameObject* target
|
||||
return;
|
||||
|
||||
int32 message_id = 0;
|
||||
ChatMsg type;
|
||||
ChatMsg type = CHAT_MSG_BG_SYSTEM_NEUTRAL;
|
||||
|
||||
//alliance flag picked up from base
|
||||
if (Source->GetTeam() == HORDE && this->GetFlagState(ALLIANCE) == BG_WS_FLAG_STATE_ON_BASE
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "Opcodes.h"
|
||||
#include "Player.h"
|
||||
|
||||
void WorldSession::HandleCalendarGetCalendar(WorldPacket &recv_data)
|
||||
void WorldSession::HandleCalendarGetCalendar(WorldPacket & /*recv_data*/)
|
||||
{
|
||||
sLog.outDebug("WORLD: CMSG_CALENDAR_GET_CALENDAR"); // empty
|
||||
|
||||
|
||||
@@ -431,7 +431,6 @@ void Channel::SetMode(uint64 p, const char *p2n, bool mod, bool set)
|
||||
return;
|
||||
}
|
||||
|
||||
PlayerInfo inf = players[newp->GetGUID()];
|
||||
if (p == m_ownerGUID && newp->GetGUID() == m_ownerGUID && mod)
|
||||
return;
|
||||
|
||||
|
||||
+10
-10
@@ -39,22 +39,22 @@ void AggressorAI::UpdateAI(const uint32 /*diff*/)
|
||||
}
|
||||
|
||||
// some day we will delete these useless things
|
||||
int CombatAI::Permissible(const Creature *creature)
|
||||
int CombatAI::Permissible(const Creature * /*creature*/)
|
||||
{
|
||||
return PERMIT_BASE_NO;
|
||||
}
|
||||
|
||||
int ArchorAI::Permissible(const Creature *creature)
|
||||
int ArchorAI::Permissible(const Creature * /*creature*/)
|
||||
{
|
||||
return PERMIT_BASE_NO;
|
||||
}
|
||||
|
||||
int TurretAI::Permissible(const Creature *creature)
|
||||
int TurretAI::Permissible(const Creature * /*creature*/)
|
||||
{
|
||||
return PERMIT_BASE_NO;
|
||||
}
|
||||
|
||||
int AOEAI::Permissible(const Creature *creature)
|
||||
int AOEAI::Permissible(const Creature * /*creature*/)
|
||||
{
|
||||
return PERMIT_BASE_NO;
|
||||
}
|
||||
@@ -204,7 +204,7 @@ void ArchorAI::AttackStart(Unit *who)
|
||||
me->GetMotionMaster()->MoveIdle();
|
||||
}
|
||||
|
||||
void ArchorAI::UpdateAI(const uint32 diff)
|
||||
void ArchorAI::UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
@@ -229,7 +229,7 @@ TurretAI::TurretAI(Creature *c) : CreatureAI(c)
|
||||
me->m_SightDistance = me->m_CombatDistance;
|
||||
}
|
||||
|
||||
bool TurretAI::CanAIAttack(const Unit *who) const
|
||||
bool TurretAI::CanAIAttack(const Unit * /*who*/) const
|
||||
{
|
||||
// TODO: use one function to replace it
|
||||
if (!me->IsWithinCombatRange(me->getVictim(), me->m_CombatDistance)
|
||||
@@ -244,7 +244,7 @@ void TurretAI::AttackStart(Unit *who)
|
||||
me->Attack(who, false);
|
||||
}
|
||||
|
||||
void TurretAI::UpdateAI(const uint32 diff)
|
||||
void TurretAI::UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
@@ -267,16 +267,16 @@ AOEAI::AOEAI(Creature *c) : CreatureAI(c)
|
||||
me->SetDisplayId(11686);//invisible model,around a size of a player
|
||||
}
|
||||
|
||||
bool AOEAI::CanAIAttack(const Unit *who) const
|
||||
bool AOEAI::CanAIAttack(const Unit * /*who*/) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void AOEAI::AttackStart(Unit *who)
|
||||
void AOEAI::AttackStart(Unit * /*who*/)
|
||||
{
|
||||
}
|
||||
|
||||
void AOEAI::UpdateAI(const uint32 diff)
|
||||
void AOEAI::UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (!me->HasAura(me->m_spells[0]))
|
||||
me->CastSpell(me, me->m_spells[0],false);
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ class CasterAI : public CombatAI
|
||||
void InitializeAI();
|
||||
void AttackStart(Unit * victim) { AttackStartCaster(victim, m_attackDist); }
|
||||
void UpdateAI(const uint32 diff);
|
||||
void EnterCombat(Unit *who);
|
||||
void EnterCombat(Unit * /*who*/);
|
||||
private:
|
||||
float m_attackDist;
|
||||
};
|
||||
|
||||
@@ -263,7 +263,7 @@ void Creature::RemoveCorpse()
|
||||
/**
|
||||
* change the entry of creature until respawn
|
||||
*/
|
||||
bool Creature::InitEntry(uint32 Entry, uint32 team, const CreatureData *data)
|
||||
bool Creature::InitEntry(uint32 Entry, uint32 /*team*/, const CreatureData *data)
|
||||
{
|
||||
CreatureInfo const *normalInfo = objmgr.GetCreatureTemplate(Entry);
|
||||
if (!normalInfo)
|
||||
@@ -936,7 +936,7 @@ bool Creature::isCanTrainingAndResetTalentsOf(Player* pPlayer) const
|
||||
&& pPlayer->getClass() == GetCreatureInfo()->trainer_class;
|
||||
}
|
||||
|
||||
void Creature::AI_SendMoveToPacket(float x, float y, float z, uint32 time, uint32 MovementFlags, uint8 type)
|
||||
void Creature::AI_SendMoveToPacket(float x, float y, float z, uint32 time, uint32 /*MovementFlags*/, uint8 /*type*/)
|
||||
{
|
||||
/* uint32 timeElap = getMSTime();
|
||||
if ((timeElap - m_startMove) < m_moveTime)
|
||||
@@ -1356,7 +1356,7 @@ void Creature::DeleteFromDB()
|
||||
WorldDatabase.CommitTransaction();
|
||||
}
|
||||
|
||||
bool Creature::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool is3dDistance) const
|
||||
bool Creature::canSeeOrDetect(Unit const* u, bool detect, bool /*inVisibleList*/, bool /*is3dDistance*/) const
|
||||
{
|
||||
// not in world
|
||||
if (!IsInWorld() || !u->IsInWorld())
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "Vehicle.h"
|
||||
|
||||
//Disable CreatureAI when charmed
|
||||
void CreatureAI::OnCharmed(bool apply)
|
||||
void CreatureAI::OnCharmed(bool /*apply*/)
|
||||
{
|
||||
//me->IsAIEnabled = !apply;*/
|
||||
me->NeedChangeAI = true;
|
||||
|
||||
@@ -100,7 +100,7 @@ class CreatureAI : public UnitAI
|
||||
// Called at any Damage from any attacker (before damage apply)
|
||||
// Note: it for recalculation damage or special reaction at damage
|
||||
// for attack reaction use AttackedBy called for not DOT damage in Unit::DealDamage also
|
||||
virtual void DamageTaken(Unit *done_by, uint32 & /*damage*/) {}
|
||||
virtual void DamageTaken(Unit * /*done_by*/, uint32 & /*damage*/) {}
|
||||
|
||||
// Called when the creature is killed
|
||||
virtual void JustDied(Unit *) {}
|
||||
@@ -110,7 +110,7 @@ class CreatureAI : public UnitAI
|
||||
|
||||
// Called when the creature summon successfully other creature
|
||||
virtual void JustSummoned(Creature*) {}
|
||||
virtual void IsSummonedBy(Unit *summoner) {}
|
||||
virtual void IsSummonedBy(Unit * /*summoner*/) {}
|
||||
|
||||
virtual void SummonedCreatureDespawn(Creature* /*unit*/) {}
|
||||
|
||||
@@ -118,10 +118,10 @@ class CreatureAI : public UnitAI
|
||||
virtual void SpellHit(Unit*, const SpellEntry*) {}
|
||||
|
||||
// Called when spell hits a target
|
||||
virtual void SpellHitTarget(Unit* target, const SpellEntry*) {}
|
||||
virtual void SpellHitTarget(Unit* /*target*/, const SpellEntry*) {}
|
||||
|
||||
// Called to get trigger target for aura effect
|
||||
virtual Unit * GetAuraEffectTriggerTarget(uint32 spellId, uint8 effIndex) {return NULL;}
|
||||
virtual Unit * GetAuraEffectTriggerTarget(uint32 /*spellId*/, uint8 /*effIndex*/) {return NULL;}
|
||||
|
||||
// Called when the creature is target of hostile action: swing, hostile spell landed, fear/etc)
|
||||
//virtual void AttackedBy(Unit* attacker);
|
||||
@@ -143,7 +143,7 @@ class CreatureAI : public UnitAI
|
||||
void DoZoneInCombat(Creature* pUnit = NULL);
|
||||
|
||||
// Called at text emote receive from player
|
||||
virtual void ReceiveEmote(Player* pPlayer, uint32 text_emote) {}
|
||||
virtual void ReceiveEmote(Player* /*pPlayer*/, uint32 /*text_emote*/) {}
|
||||
|
||||
/// == Triggered Actions Requested ==================
|
||||
|
||||
@@ -152,7 +152,7 @@ class CreatureAI : public UnitAI
|
||||
//virtual void AttackStart(Unit *) {}
|
||||
|
||||
// Called at World update tick
|
||||
//virtual void UpdateAI(const uint32 diff) {}
|
||||
//virtual void UpdateAI(const uint32 /*diff*/) {}
|
||||
|
||||
/// == State checks =================================
|
||||
|
||||
@@ -170,7 +170,7 @@ class CreatureAI : public UnitAI
|
||||
// Pointer to controlled by AI creature
|
||||
//Creature* const me;
|
||||
|
||||
virtual void PassengerBoarded(Unit *who, int8 seatId, bool apply) {}
|
||||
virtual void PassengerBoarded(Unit * /*who*/, int8 /*seatId*/, bool /*apply*/) {}
|
||||
|
||||
protected:
|
||||
virtual void MoveInLineOfSight(Unit *);
|
||||
|
||||
@@ -1339,7 +1339,7 @@ void CreatureEventAI::ReceiveEmote(Player* pPlayer, uint32 text_emote)
|
||||
}
|
||||
}
|
||||
|
||||
void CreatureEventAI::DamageTaken(Unit* done_by, uint32& damage)
|
||||
void CreatureEventAI::DamageTaken(Unit* /*done_by*/, uint32& damage)
|
||||
{
|
||||
if (InvinceabilityHpLevel > 0 && me->GetHealth() < InvinceabilityHpLevel+damage)
|
||||
{
|
||||
|
||||
@@ -594,7 +594,7 @@ class CreatureEventAI : public CreatureAI
|
||||
void JustReachedHome();
|
||||
void EnterCombat(Unit *enemy);
|
||||
void EnterEvadeMode();
|
||||
void JustDied(Unit* killer);
|
||||
void JustDied(Unit* /*killer*/);
|
||||
void KilledUnit(Unit* victim);
|
||||
void JustSummoned(Creature* pUnit);
|
||||
void AttackStart(Unit *who);
|
||||
|
||||
@@ -61,7 +61,7 @@ bool FleeingMovementGenerator<Creature>::GetDestination(float &x, float &y, floa
|
||||
}
|
||||
|
||||
template<>
|
||||
bool FleeingMovementGenerator<Player>::GetDestination(float &x, float &y, float &z) const
|
||||
bool FleeingMovementGenerator<Player>::GetDestination(float & /*x*/, float & /*y*/, float & /*z*/) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ GameObject::~GameObject()
|
||||
// CleanupsBeforeDelete();
|
||||
}
|
||||
|
||||
void GameObject::CleanupsBeforeDelete(bool finalCleanup)
|
||||
void GameObject::CleanupsBeforeDelete(bool /*finalCleanup*/)
|
||||
{
|
||||
if (IsInWorld())
|
||||
RemoveFromWorld();
|
||||
|
||||
+1
-1
@@ -1533,7 +1533,7 @@ void Group::UpdateLooterGuid(WorldObject* pLootedObject, bool ifneed)
|
||||
}
|
||||
}
|
||||
|
||||
GroupJoinBattlegroundResult Group::CanJoinBattleGroundQueue(BattleGround const* bgOrTemplate, BattleGroundQueueTypeId bgQueueTypeId, uint32 MinPlayerCount, uint32 MaxPlayerCount, bool isRated, uint32 arenaSlot)
|
||||
GroupJoinBattlegroundResult Group::CanJoinBattleGroundQueue(BattleGround const* bgOrTemplate, BattleGroundQueueTypeId bgQueueTypeId, uint32 MinPlayerCount, uint32 /*MaxPlayerCount*/, bool isRated, uint32 arenaSlot)
|
||||
{
|
||||
BattlemasterListEntry const* bgEntry = sBattlemasterListStore.LookupEntry(bgOrTemplate->GetTypeID());
|
||||
if (!bgEntry)
|
||||
|
||||
@@ -200,7 +200,6 @@ inline uint32 GetGuildBankTabPrice(uint8 Index)
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct GuildEventLogEntry
|
||||
|
||||
@@ -96,7 +96,7 @@ DistractMovementGenerator::Finalize(Unit& owner)
|
||||
}
|
||||
|
||||
bool
|
||||
DistractMovementGenerator::Update(Unit& owner, const uint32& time_diff)
|
||||
DistractMovementGenerator::Update(Unit& /*owner*/, const uint32& time_diff)
|
||||
{
|
||||
if (time_diff > m_timer)
|
||||
return false;
|
||||
|
||||
@@ -130,7 +130,7 @@ class InstanceData : public ZoneScript
|
||||
|
||||
void SaveToDB();
|
||||
|
||||
virtual void Update(uint32 diff) {}
|
||||
virtual void Update(uint32 /*diff*/) {}
|
||||
|
||||
//Used by the map's CanEnter function.
|
||||
//This is to prevent players from entering during boss encounters.
|
||||
|
||||
@@ -235,7 +235,7 @@ void InstanceSaveManager::_DelHelper(DatabaseType &db, const char *fields, const
|
||||
va_list ap;
|
||||
char szQueryTail [MAX_QUERY_LEN];
|
||||
va_start(ap, queryTail);
|
||||
int res = vsnprintf(szQueryTail, MAX_QUERY_LEN, queryTail, ap);
|
||||
vsnprintf(szQueryTail, MAX_QUERY_LEN, queryTail, ap);
|
||||
va_end(ap);
|
||||
|
||||
QueryResult_AutoPtr result = db.PQuery("SELECT %s FROM %s %s", fields, table, szQueryTail);
|
||||
@@ -258,8 +258,6 @@ void InstanceSaveManager::_DelHelper(DatabaseType &db, const char *fields, const
|
||||
|
||||
void InstanceSaveManager::CleanupInstances()
|
||||
{
|
||||
uint64 now = (uint64)time(NULL);
|
||||
|
||||
barGoLink bar(2);
|
||||
bar.step();
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ void WorldSession::HandleLookingForGroup(WorldPacket& recv_data)
|
||||
SendLfgUpdate(0, 1, 0);
|
||||
}
|
||||
|
||||
void WorldSession::SendLfgResult(uint32 type, uint32 entry, uint8 lfg_type)
|
||||
void WorldSession::SendLfgResult(uint32 /*type*/, uint32 /*entry*/, uint8 /*lfg_type*/)
|
||||
{/*
|
||||
uint32 number = 0;
|
||||
|
||||
@@ -428,7 +428,7 @@ void WorldSession::HandleLfgSetRoles(WorldPacket &recv_data)
|
||||
_player->m_lookingForGroup.roles = roles;
|
||||
}
|
||||
|
||||
void WorldSession::SendLfgUpdate(uint8 unk1, uint8 unk2, uint8 unk3)
|
||||
void WorldSession::SendLfgUpdate(uint8 /*unk1*/, uint8 /*unk2*/, uint8 /*unk3*/)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ bool ChatHandler::HandleHelpCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleCommandsCommand(const char* args)
|
||||
bool ChatHandler::HandleCommandsCommand(const char* /*args*/)
|
||||
{
|
||||
ShowHelpForCommand(getCommandTable(), "");
|
||||
return true;
|
||||
|
||||
+4
-4
@@ -295,7 +295,7 @@ std::string ChatHandler::PGetParseString(int32 entry, ...)
|
||||
return (std::string)str;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleGMTicketListCommand(const char* args)
|
||||
bool ChatHandler::HandleGMTicketListCommand(const char* /*args*/)
|
||||
{
|
||||
SendSysMessage(LANG_COMMAND_TICKETSHOWLIST);
|
||||
for (GmTicketList::iterator itr = objmgr.m_GMTicketList.begin(); itr != objmgr.m_GMTicketList.end(); ++itr)
|
||||
@@ -317,7 +317,7 @@ bool ChatHandler::HandleGMTicketListCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleGMTicketListOnlineCommand(const char* args)
|
||||
bool ChatHandler::HandleGMTicketListOnlineCommand(const char* /*args*/)
|
||||
{
|
||||
SendSysMessage(LANG_COMMAND_TICKETSHOWONLINELIST);
|
||||
for (GmTicketList::iterator itr = objmgr.m_GMTicketList.begin(); itr != objmgr.m_GMTicketList.end(); ++itr)
|
||||
@@ -340,7 +340,7 @@ bool ChatHandler::HandleGMTicketListOnlineCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleGMTicketListClosedCommand(const char* args)
|
||||
bool ChatHandler::HandleGMTicketListClosedCommand(const char* /*args*/)
|
||||
{
|
||||
SendSysMessage(LANG_COMMAND_TICKETSHOWCLOSEDLIST);
|
||||
for (GmTicketList::iterator itr = objmgr.m_GMTicketList.begin(); itr != objmgr.m_GMTicketList.end(); ++itr)
|
||||
@@ -946,7 +946,7 @@ bool ChatHandler::HandleGonameCommand(const char* args)
|
||||
}
|
||||
else if (cMap->IsDungeon())
|
||||
{
|
||||
Map* pMap = _player->GetMap();
|
||||
//Map* pMap = _player->GetMap();
|
||||
|
||||
// we have to go to instance, and can go to player only if:
|
||||
// 1) we are in his group (either as leader or as member)
|
||||
|
||||
+5
-7
@@ -1147,7 +1147,7 @@ bool ChatHandler::HandleNpcAddMoveCommand(const char* args)
|
||||
if (wait < 0)
|
||||
wait = 0;
|
||||
|
||||
Player* player = m_session->GetPlayer();
|
||||
//Player* player = m_session->GetPlayer();
|
||||
|
||||
//WaypointMgr.AddLastNode(lowguid, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), player->GetOrientation(), wait, 0);
|
||||
|
||||
@@ -2354,7 +2354,7 @@ bool ChatHandler::HandleWpAddCommand(const char* args)
|
||||
point = (*result)[0].GetUInt32();
|
||||
|
||||
Player* player = m_session->GetPlayer();
|
||||
Map *map = player->GetMap();
|
||||
//Map *map = player->GetMap();
|
||||
|
||||
WorldDatabase.PExecuteLog("INSERT INTO waypoint_data (id, point, position_x, position_y, position_z) VALUES ('%u','%u','%f', '%f', '%f')",
|
||||
pathid, point+1, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());
|
||||
@@ -2437,7 +2437,7 @@ bool ChatHandler::HandleReloadAllPaths(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleWpUnLoadPathCommand(const char *args)
|
||||
bool ChatHandler::HandleWpUnLoadPathCommand(const char * /*args*/)
|
||||
{
|
||||
uint32 guidlow = 0;
|
||||
Creature* target = getSelectedCreature();
|
||||
@@ -3425,7 +3425,7 @@ bool ChatHandler::HandleLookupEventCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleEventActiveListCommand(const char* args)
|
||||
bool ChatHandler::HandleEventActiveListCommand(const char* /*args*/)
|
||||
{
|
||||
uint32 counter = 0;
|
||||
|
||||
@@ -3674,8 +3674,6 @@ bool ChatHandler::HandleLearnAllRecipesCommand(const char* args)
|
||||
if (!Utf8toWStr(args,wnamepart))
|
||||
return false;
|
||||
|
||||
uint32 counter = 0; // Counter for figure out that we found smth.
|
||||
|
||||
// converting string that we try to find to lower case
|
||||
wstrToLower(wnamepart);
|
||||
|
||||
@@ -3893,7 +3891,7 @@ bool ChatHandler::HandleWaterwalkCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleCreatePetCommand(const char* args)
|
||||
bool ChatHandler::HandleCreatePetCommand(const char* /*args*/)
|
||||
{
|
||||
Player *player = m_session->GetPlayer();
|
||||
Creature *creatureTarget = getSelectedCreature();
|
||||
|
||||
+11
-11
@@ -757,7 +757,7 @@ bool ChatHandler::HandleReloadCreatureQuestRelationsCommand(const char*)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadCreatureLinkedRespawnCommand(const char *args)
|
||||
bool ChatHandler::HandleReloadCreatureLinkedRespawnCommand(const char * /*args*/)
|
||||
{
|
||||
sLog.outString("Loading Linked Respawns... (`creature_linked_respawn`)");
|
||||
objmgr.LoadCreatureLinkedRespawn();
|
||||
@@ -1193,7 +1193,7 @@ bool ChatHandler::HandleReloadWpScriptsCommand(const char* arg)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadEventAITextsCommand(const char* arg)
|
||||
bool ChatHandler::HandleReloadEventAITextsCommand(const char* /*args*/)
|
||||
{
|
||||
|
||||
sLog.outString("Re-Loading Texts from `creature_ai_texts`...");
|
||||
@@ -1202,7 +1202,7 @@ bool ChatHandler::HandleReloadEventAITextsCommand(const char* arg)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadEventAISummonsCommand(const char* arg)
|
||||
bool ChatHandler::HandleReloadEventAISummonsCommand(const char* /*args*/)
|
||||
{
|
||||
sLog.outString("Re-Loading Summons from `creature_ai_summons`...");
|
||||
CreatureEAI_Mgr.LoadCreatureEventAI_Summons();
|
||||
@@ -1210,7 +1210,7 @@ bool ChatHandler::HandleReloadEventAISummonsCommand(const char* arg)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadEventAIScriptsCommand(const char* arg)
|
||||
bool ChatHandler::HandleReloadEventAIScriptsCommand(const char* /*args*/)
|
||||
{
|
||||
sLog.outString("Re-Loading Scripts from `creature_ai_scripts`...");
|
||||
CreatureEAI_Mgr.LoadCreatureEventAI_Scripts();
|
||||
@@ -1391,7 +1391,7 @@ bool ChatHandler::HandleReloadMailLevelRewardCommand(const char* /*arg*/)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleReloadAuctionsCommand(const char *args)
|
||||
bool ChatHandler::HandleReloadAuctionsCommand(const char * /*args*/)
|
||||
{
|
||||
///- Reload dynamic data tables from the database
|
||||
sLog.outString("Re-Loading Auctions...");
|
||||
@@ -5113,7 +5113,7 @@ bool ChatHandler::HandleListAurasCommand (const char * /*args*/)
|
||||
PSendSysMessage(LANG_COMMAND_TARGET_LISTAURATYPE, uAuraList.size(), i);
|
||||
for (Unit::AuraEffectList::const_iterator itr = uAuraList.begin(); itr != uAuraList.end(); ++itr)
|
||||
{
|
||||
bool talent = GetTalentSpellCost((*itr)->GetId()) > 0;
|
||||
//bool talent = GetTalentSpellCost((*itr)->GetId()) > 0;
|
||||
|
||||
char const* name = (*itr)->GetSpellProto()->SpellName[GetSessionDbcLocale()];
|
||||
|
||||
@@ -7414,7 +7414,7 @@ bool ChatHandler::HandleUnFreezeCommand(const char *args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleListFreezeCommand(const char *args)
|
||||
bool ChatHandler::HandleListFreezeCommand(const char * /*args*/)
|
||||
{
|
||||
//Get names from DB
|
||||
QueryResult_AutoPtr result = CharacterDatabase.PQuery("SELECT characters.name FROM characters LEFT JOIN character_aura ON (characters.guid = character_aura.guid) WHERE character_aura.spell = 9454");
|
||||
@@ -7479,7 +7479,7 @@ bool ChatHandler::HandleGroupRemoveCommand(const char *args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandlePossessCommand(const char *args)
|
||||
bool ChatHandler::HandlePossessCommand(const char * /*args*/)
|
||||
{
|
||||
Unit *pUnit = getSelectedUnit();
|
||||
if (!pUnit)
|
||||
@@ -7489,7 +7489,7 @@ bool ChatHandler::HandlePossessCommand(const char *args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleUnPossessCommand(const char *args)
|
||||
bool ChatHandler::HandleUnPossessCommand(const char * /*args*/)
|
||||
{
|
||||
Unit *pUnit = getSelectedUnit();
|
||||
if (!pUnit)
|
||||
@@ -7500,7 +7500,7 @@ bool ChatHandler::HandleUnPossessCommand(const char *args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleBindSightCommand(const char *args)
|
||||
bool ChatHandler::HandleBindSightCommand(const char * /*args*/)
|
||||
{
|
||||
Unit *pUnit = getSelectedUnit();
|
||||
if (!pUnit)
|
||||
@@ -7510,7 +7510,7 @@ bool ChatHandler::HandleBindSightCommand(const char *args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleUnbindSightCommand(const char *args)
|
||||
bool ChatHandler::HandleUnbindSightCommand(const char * /*args*/)
|
||||
{
|
||||
if (m_session->GetPlayer()->isPossessing())
|
||||
return false;
|
||||
|
||||
@@ -1078,7 +1078,7 @@ void LootTemplate::LootGroup::Verify(LootStore const& lootstore, uint32 id, uint
|
||||
}
|
||||
}
|
||||
|
||||
void LootTemplate::LootGroup::CheckLootRefs(LootTemplateMap const& store, LootIdSet* ref_set) const
|
||||
void LootTemplate::LootGroup::CheckLootRefs(LootTemplateMap const& /*store*/, LootIdSet* ref_set) const
|
||||
{
|
||||
for (LootStoreItemList::const_iterator ieItr=ExplicitlyChanced.begin(); ieItr != ExplicitlyChanced.end(); ++ieItr)
|
||||
{
|
||||
|
||||
+3
-3
@@ -1254,7 +1254,7 @@ void GridMap::unloadData()
|
||||
m_gridGetHeight = &GridMap::getHeightFromFlat;
|
||||
}
|
||||
|
||||
bool GridMap::loadAreaData(FILE *in, uint32 offset, uint32 size)
|
||||
bool GridMap::loadAreaData(FILE *in, uint32 offset, uint32 /*size*/)
|
||||
{
|
||||
map_areaHeader header;
|
||||
fseek(in, offset, SEEK_SET);
|
||||
@@ -1271,7 +1271,7 @@ bool GridMap::loadAreaData(FILE *in, uint32 offset, uint32 size)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GridMap::loadHeihgtData(FILE *in, uint32 offset, uint32 size)
|
||||
bool GridMap::loadHeihgtData(FILE *in, uint32 offset, uint32 /*size*/)
|
||||
{
|
||||
map_heightHeader header;
|
||||
fseek(in, offset, SEEK_SET);
|
||||
@@ -1314,7 +1314,7 @@ bool GridMap::loadHeihgtData(FILE *in, uint32 offset, uint32 size)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GridMap::loadLiquidData(FILE *in, uint32 offset, uint32 size)
|
||||
bool GridMap::loadLiquidData(FILE *in, uint32 offset, uint32 /*size*/)
|
||||
{
|
||||
map_liquidHeader header;
|
||||
fseek(in, offset, SEEK_SET);
|
||||
|
||||
@@ -257,7 +257,7 @@ bool MapInstanced::DestroyInstance(InstancedMaps::iterator &itr)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MapInstanced::CanEnter(Player *player)
|
||||
bool MapInstanced::CanEnter(Player * /*player*/)
|
||||
{
|
||||
//assert(false);
|
||||
return true;
|
||||
|
||||
@@ -133,7 +133,7 @@ Map* MapManager::_createBaseMap(uint32 id)
|
||||
return m;
|
||||
}
|
||||
|
||||
Map* MapManager::CreateMap(uint32 id, const WorldObject* obj, uint32 instanceId)
|
||||
Map* MapManager::CreateMap(uint32 id, const WorldObject* obj, uint32 /*instanceId*/)
|
||||
{
|
||||
ASSERT(obj);
|
||||
//if (!obj->IsInWorld()) sLog.outError("GetMap: called for map %d with object (typeid %d, guid %d, mapid %d, instanceid %d) who is not in world!", id, obj->GetTypeId(), obj->GetGUIDLow(), obj->GetMapId(), obj->GetInstanceId());
|
||||
|
||||
@@ -1673,7 +1673,7 @@ void WorldSession::HandleQueryInspectAchievements(WorldPacket & recv_data)
|
||||
player->GetAchievementMgr().SendRespondInspectAchievements(_player);
|
||||
}
|
||||
|
||||
void WorldSession::HandleWorldStateUITimerUpdate(WorldPacket& recv_data)
|
||||
void WorldSession::HandleWorldStateUITimerUpdate(WorldPacket& /*recv_data*/)
|
||||
{
|
||||
// empty opcode
|
||||
sLog.outDebug("WORLD: CMSG_WORLD_STATE_UI_TIMER_UPDATE");
|
||||
@@ -1683,7 +1683,7 @@ void WorldSession::HandleWorldStateUITimerUpdate(WorldPacket& recv_data)
|
||||
SendPacket(&data);
|
||||
}
|
||||
|
||||
void WorldSession::HandleReadyForAccountDataTimes(WorldPacket& recv_data)
|
||||
void WorldSession::HandleReadyForAccountDataTimes(WorldPacket& /*recv_data*/)
|
||||
{
|
||||
// empty opcode
|
||||
sLog.outDebug("WORLD: CMSG_READY_FOR_ACCOUNT_DATA_TIMES");
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
template<class MOVEMENT_GEN>
|
||||
inline MovementGenerator*
|
||||
MovementGeneratorFactory<MOVEMENT_GEN>::Create(void *data) const
|
||||
MovementGeneratorFactory<MOVEMENT_GEN>::Create(void * /*data*/) const
|
||||
{
|
||||
return (new MOVEMENT_GEN());
|
||||
}
|
||||
|
||||
+3
-3
@@ -1176,7 +1176,7 @@ void WorldObject::setActive(bool on)
|
||||
}
|
||||
}
|
||||
|
||||
void WorldObject::CleanupsBeforeDelete(bool finalCleanup)
|
||||
void WorldObject::CleanupsBeforeDelete(bool /*finalCleanup*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1799,7 +1799,7 @@ void WorldObject::SetZoneScript()
|
||||
}
|
||||
}
|
||||
|
||||
TempSummon* WorldObject::SummonCreature(uint32 entry, const Position &pos, TempSummonType spwtype, uint32 duration, uint32 vehId) const
|
||||
TempSummon* WorldObject::SummonCreature(uint32 entry, const Position &pos, TempSummonType spwtype, uint32 duration, uint32 /*vehId*/) const
|
||||
{
|
||||
if (Map *map = FindMap())
|
||||
{
|
||||
@@ -2099,7 +2099,7 @@ void WorldObject::GetNearPoint2D(float &x, float &y, float distance2d, float abs
|
||||
Trinity::NormalizeMapCoord(y);
|
||||
}
|
||||
|
||||
void WorldObject::GetNearPoint(WorldObject const* searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const
|
||||
void WorldObject::GetNearPoint(WorldObject const* /*searcher*/, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const
|
||||
{
|
||||
GetNearPoint2D(x,y,distance2d+searcher_size,absAngle);
|
||||
z = GetPositionZ();
|
||||
|
||||
@@ -997,7 +997,7 @@ CreatureModelInfo const* ObjectMgr::GetCreatureModelInfo(uint32 modelid)
|
||||
return sCreatureModelStorage.LookupEntry<CreatureModelInfo>(modelid);
|
||||
}
|
||||
|
||||
uint32 ObjectMgr::ChooseDisplayId(uint32 team, const CreatureInfo *cinfo, const CreatureData *data /*= NULL*/)
|
||||
uint32 ObjectMgr::ChooseDisplayId(uint32 /*team*/, const CreatureInfo *cinfo, const CreatureData *data /*= NULL*/)
|
||||
{
|
||||
// Load creature model (display id)
|
||||
uint32 display_id = 0;
|
||||
@@ -1484,7 +1484,7 @@ bool ObjectMgr::MoveCreData(uint32 guid, uint32 mapId, Position pos)
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32 ObjectMgr::AddCreData(uint32 entry, uint32 team, uint32 mapId, float x, float y, float z, float o, uint32 spawntimedelay)
|
||||
uint32 ObjectMgr::AddCreData(uint32 entry, uint32 /*team*/, uint32 mapId, float x, float y, float z, float o, uint32 spawntimedelay)
|
||||
{
|
||||
CreatureInfo const *cInfo = GetCreatureTemplate(entry);
|
||||
if (!cInfo)
|
||||
|
||||
@@ -234,12 +234,12 @@ OutdoorPvP::~OutdoorPvP()
|
||||
DeleteSpawns();
|
||||
}
|
||||
|
||||
void OutdoorPvP::HandlePlayerEnterZone(Player * plr, uint32 zone)
|
||||
void OutdoorPvP::HandlePlayerEnterZone(Player * plr, uint32 /*zone*/)
|
||||
{
|
||||
m_players[plr->GetTeamId()].insert(plr);
|
||||
}
|
||||
|
||||
void OutdoorPvP::HandlePlayerLeaveZone(Player * plr, uint32 zone)
|
||||
void OutdoorPvP::HandlePlayerLeaveZone(Player * plr, uint32 /*zone*/)
|
||||
{
|
||||
// inform the objectives of the leaving
|
||||
for (OPvPCapturePointMap::iterator itr = m_capturePoints.begin(); itr != m_capturePoints.end(); ++itr)
|
||||
@@ -251,7 +251,7 @@ void OutdoorPvP::HandlePlayerLeaveZone(Player * plr, uint32 zone)
|
||||
sLog.outDebug("Player %s left an outdoorpvp zone", plr->GetName());
|
||||
}
|
||||
|
||||
void OutdoorPvP::HandlePlayerResurrects(Player * plr, uint32 zone)
|
||||
void OutdoorPvP::HandlePlayerResurrects(Player * /*plr*/, uint32 /*zone*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -481,7 +481,7 @@ bool OutdoorPvP::HandleCustomSpell(Player *plr, uint32 spellId, GameObject * go)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool OPvPCapturePoint::HandleCustomSpell(Player *plr, uint32 spellId, GameObject * go)
|
||||
bool OPvPCapturePoint::HandleCustomSpell(Player *plr, uint32 /*spellId*/, GameObject * /*go*/)
|
||||
{
|
||||
if (!plr->IsOutdoorPvPActive())
|
||||
return false;
|
||||
@@ -524,22 +524,22 @@ bool OutdoorPvP::HandleDropFlag(Player * plr, uint32 id)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool OPvPCapturePoint::HandleGossipOption(Player * plr, uint64 guid, uint32 id)
|
||||
bool OPvPCapturePoint::HandleGossipOption(Player * /*plr*/, uint64 /*guid*/, uint32 /*id*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool OPvPCapturePoint::CanTalkTo(Player * plr, Creature * c, GossipMenuItems gso)
|
||||
bool OPvPCapturePoint::CanTalkTo(Player * /*plr*/, Creature * /*c*/, GossipMenuItems /*gso*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool OPvPCapturePoint::HandleDropFlag(Player * plr, uint32 id)
|
||||
bool OPvPCapturePoint::HandleDropFlag(Player * /*plr*/, uint32 /*id*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int32 OPvPCapturePoint::HandleOpenGo(Player *plr, uint64 guid)
|
||||
int32 OPvPCapturePoint::HandleOpenGo(Player * /*plr*/, uint64 guid)
|
||||
{
|
||||
std::map<uint64,uint32>::iterator itr = m_ObjectTypes.find(guid);
|
||||
if (itr != m_ObjectTypes.end())
|
||||
@@ -549,7 +549,7 @@ int32 OPvPCapturePoint::HandleOpenGo(Player *plr, uint64 guid)
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool OutdoorPvP::HandleAreaTrigger(Player *plr, uint32 trigger)
|
||||
bool OutdoorPvP::HandleAreaTrigger(Player * /*plr*/, uint32 /*trigger*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ class OPvPCapturePoint
|
||||
public:
|
||||
OPvPCapturePoint(OutdoorPvP * pvp);
|
||||
|
||||
virtual void FillInitialWorldStates(WorldPacket & data) {}
|
||||
virtual void FillInitialWorldStates(WorldPacket & /*data*/) {}
|
||||
|
||||
// send world state update to all players present
|
||||
void SendUpdateWorldState(uint32 field, uint32 value);
|
||||
@@ -112,7 +112,7 @@ public:
|
||||
// returns true if the state of the objective has changed, in this case, the OutdoorPvP must send a world state ui update.
|
||||
virtual bool Update(uint32 diff);
|
||||
virtual void ChangeState() = 0;
|
||||
virtual void ChangeTeam(TeamId oldTeam) {}
|
||||
virtual void ChangeTeam(TeamId /*oldTeam*/) {}
|
||||
virtual void SendChangePhase();
|
||||
|
||||
virtual bool HandleGossipOption(Player *plr, uint64 guid, uint32 gossipid);
|
||||
@@ -181,7 +181,7 @@ public:
|
||||
|
||||
typedef std::map<uint32/*lowguid*/, OPvPCapturePoint*> OPvPCapturePointMap;
|
||||
|
||||
virtual void FillInitialWorldStates(WorldPacket & data) {}
|
||||
virtual void FillInitialWorldStates(WorldPacket & /*data*/) {}
|
||||
// called when a player triggers an areatrigger
|
||||
virtual bool HandleAreaTrigger(Player * plr, uint32 trigger);
|
||||
// called on custom spell
|
||||
@@ -193,7 +193,7 @@ public:
|
||||
virtual bool SetupOutdoorPvP() {return true;}
|
||||
|
||||
void OnGameObjectCreate(GameObject *go, bool add);
|
||||
void OnCreatureCreate(Creature *, bool add) {}
|
||||
void OnCreatureCreate(Creature *, bool /*add*/) {}
|
||||
|
||||
// send world state update to all players present
|
||||
void SendUpdateWorldState(uint32 field, uint32 value);
|
||||
@@ -203,13 +203,13 @@ public:
|
||||
|
||||
// handle npc/player kill
|
||||
virtual void HandleKill(Player * killer, Unit * killed);
|
||||
virtual void HandleKillImpl(Player * killer, Unit * killed) {}
|
||||
virtual void HandleKillImpl(Player * /*killer*/, Unit * /*killed*/) {}
|
||||
|
||||
// checks if player is in range of a capture credit marker
|
||||
bool IsInsideObjective(Player * plr) const;
|
||||
|
||||
// awards rewards for player kill
|
||||
virtual void AwardKillBonus(Player * plr) {}
|
||||
virtual void AwardKillBonus(Player * /*plr*/) {}
|
||||
|
||||
uint32 GetTypeId() {return m_TypeId;}
|
||||
|
||||
@@ -230,7 +230,7 @@ protected:
|
||||
bool m_sendUpdate;
|
||||
|
||||
// world state stuff
|
||||
virtual void SendRemoveWorldStates(Player * plr) {}
|
||||
virtual void SendRemoveWorldStates(Player * /*plr*/) {}
|
||||
|
||||
void BroadcastPacket(WorldPacket & data) const;
|
||||
|
||||
|
||||
@@ -334,7 +334,7 @@ bool OutdoorPvPNA::Update(uint32 diff)
|
||||
return m_obj->Update(diff);
|
||||
}
|
||||
|
||||
bool OPvPCapturePointNA::HandleCustomSpell(Player * plr, uint32 spellId, GameObject * go)
|
||||
bool OPvPCapturePointNA::HandleCustomSpell(Player * plr, uint32 spellId, GameObject * /*go*/)
|
||||
{
|
||||
std::vector<uint32> nodes;
|
||||
nodes.resize(2);
|
||||
|
||||
@@ -62,7 +62,7 @@ bool OutdoorPvPSI::SetupOutdoorPvP()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OutdoorPvPSI::Update(uint32 diff)
|
||||
bool OutdoorPvPSI::Update(uint32 /*diff*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ void OutdoorPvPZM::HandleKillImpl(Player *plr, Unit * killed)
|
||||
plr->CastSpell(plr,ZM_HordePlayerKillReward,true);
|
||||
}
|
||||
|
||||
bool OPvPCapturePointZM_GraveYard::Update(uint32 diff)
|
||||
bool OPvPCapturePointZM_GraveYard::Update(uint32 /*diff*/)
|
||||
{
|
||||
bool retval = m_State != m_OldState;
|
||||
m_State = m_OldState;
|
||||
@@ -340,7 +340,7 @@ bool OPvPCapturePointZM_GraveYard::CanTalkTo(Player * plr, Creature * c, GossipM
|
||||
return false;
|
||||
}
|
||||
|
||||
bool OPvPCapturePointZM_GraveYard::HandleGossipOption(Player *plr, uint64 guid, uint32 gossipid)
|
||||
bool OPvPCapturePointZM_GraveYard::HandleGossipOption(Player *plr, uint64 guid, uint32 /*gossipid*/)
|
||||
{
|
||||
std::map<uint64,uint32>::iterator itr = m_CreatureTypes.find(guid);
|
||||
if (itr != m_CreatureTypes.end())
|
||||
@@ -368,7 +368,7 @@ bool OPvPCapturePointZM_GraveYard::HandleGossipOption(Player *plr, uint64 guid,
|
||||
return false;
|
||||
}
|
||||
|
||||
bool OPvPCapturePointZM_GraveYard::HandleDropFlag(Player * plr, uint32 spellId)
|
||||
bool OPvPCapturePointZM_GraveYard::HandleDropFlag(Player * /*plr*/, uint32 spellId)
|
||||
{
|
||||
switch(spellId)
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ void PossessedAI::AttackStart(Unit *target)
|
||||
me->Attack(target, true);
|
||||
}
|
||||
|
||||
void PossessedAI::UpdateAI(const uint32 diff)
|
||||
void PossessedAI::UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (me->getVictim())
|
||||
{
|
||||
@@ -48,7 +48,7 @@ void PossessedAI::UpdateAI(const uint32 diff)
|
||||
}
|
||||
}
|
||||
|
||||
void PossessedAI::JustDied(Unit *u)
|
||||
void PossessedAI::JustDied(Unit * /*u*/)
|
||||
{
|
||||
// We died while possessed, disable our loot
|
||||
me->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
|
||||
@@ -61,7 +61,7 @@ void PossessedAI::KilledUnit(Unit* victim)
|
||||
victim->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
|
||||
}
|
||||
|
||||
void CritterAI::DamageTaken(Unit *done_by, uint32 &)
|
||||
void CritterAI::DamageTaken(Unit * /*done_by*/, uint32 &)
|
||||
{
|
||||
if (!me->hasUnitState(UNIT_STAT_FLEEING))
|
||||
me->SetControlled(true, UNIT_STAT_FLEEING);
|
||||
|
||||
@@ -61,7 +61,7 @@ class NullCreatureAI : public CreatureAI
|
||||
void AttackStart(Unit *) {}
|
||||
void UpdateAI(const uint32) {}
|
||||
void EnterEvadeMode() {}
|
||||
void OnCharmed(bool apply) {}
|
||||
void OnCharmed(bool /*apply*/) {}
|
||||
|
||||
static int Permissible(const Creature *) { return PERMIT_BASE_IDLE; }
|
||||
};
|
||||
|
||||
+2
-2
@@ -34,12 +34,12 @@ class PetAI : public CreatureAI
|
||||
explicit PetAI(Creature *c);
|
||||
|
||||
void EnterEvadeMode();
|
||||
void JustDied(Unit *who) { _stopAttack(); }
|
||||
void JustDied(Unit * /*who*/) { _stopAttack(); }
|
||||
|
||||
void UpdateAI(const uint32);
|
||||
static int Permissible(const Creature *);
|
||||
|
||||
void KilledUnit(Unit *victim);
|
||||
void KilledUnit(Unit * /*victim*/);
|
||||
void AttackStart(Unit *target);
|
||||
void MovementInform(uint32 moveType, uint32 data);
|
||||
|
||||
|
||||
+13
-16
@@ -560,7 +560,7 @@ void Player::CleanupsBeforeDelete(bool finalCleanup)
|
||||
itr->second.save->RemovePlayer(this);
|
||||
}
|
||||
|
||||
bool Player::Create(uint32 guidlow, const std::string& name, uint8 race, uint8 class_, uint8 gender, uint8 skin, uint8 face, uint8 hairStyle, uint8 hairColor, uint8 facialHair, uint8 outfitId)
|
||||
bool Player::Create(uint32 guidlow, const std::string& name, uint8 race, uint8 class_, uint8 gender, uint8 skin, uint8 face, uint8 hairStyle, uint8 hairColor, uint8 facialHair, uint8 /*outfitId*/)
|
||||
{
|
||||
//FIXME: outfitId not used in player creating
|
||||
|
||||
@@ -963,7 +963,6 @@ int32 Player::getMaxTimer(MirrorTimerType timer)
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Player::UpdateMirrorTimers()
|
||||
@@ -1168,7 +1167,7 @@ void Player::Update(uint32 p_time)
|
||||
//if (m_spellModTakingSpell)
|
||||
sLog.outCrash("Player has m_spellModTakingSpell %u during update!", m_spellModTakingSpell->m_spellInfo->Id);
|
||||
return;
|
||||
m_spellModTakingSpell = NULL;
|
||||
//m_spellModTakingSpell = NULL;
|
||||
}
|
||||
|
||||
//used to implement delayed far teleports
|
||||
@@ -6433,8 +6432,8 @@ bool Player::RewardHonor(Unit *uVictim, uint32 groupsize, float honor, bool pvpt
|
||||
|
||||
uint64 victim_guid = 0;
|
||||
uint32 victim_rank = 0;
|
||||
uint32 rank_diff = 0;
|
||||
time_t now = time(NULL);
|
||||
//uint32 rank_diff = 0;
|
||||
//time_t now = time(NULL);
|
||||
|
||||
// need call before fields update to have chance move yesterday data to appropriate fields before today data change.
|
||||
UpdateHonorFields();
|
||||
@@ -12981,8 +12980,8 @@ void Player::ApplyEnchantment(Item *item, EnchantmentSlot slot, bool apply, bool
|
||||
break;
|
||||
// case ITEM_MOD_FERAL_ATTACK_POWER:
|
||||
// ((Player*)this)->ApplyFeralAPBonus(enchant_amount, apply);
|
||||
sLog.outDebug("+ %u FERAL_ATTACK_POWER", enchant_amount);
|
||||
break;
|
||||
// sLog.outDebug("+ %u FERAL_ATTACK_POWER", enchant_amount);
|
||||
// break;
|
||||
case ITEM_MOD_MANA_REGENERATION:
|
||||
((Player*)this)->ApplyManaRegenBonus(enchant_amount, apply);
|
||||
sLog.outDebug("+ %u MANA_REGENERATION", enchant_amount);
|
||||
@@ -14579,7 +14578,7 @@ bool Player::SatisfyQuestDay(Quest const* qInfo, bool msg)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Player::SatisfyQuestWeek( Quest const* qInfo, bool msg )
|
||||
bool Player::SatisfyQuestWeek(Quest const* qInfo, bool /*msg*/)
|
||||
{
|
||||
if (!qInfo->IsWeekly() || m_weeklyquests.empty())
|
||||
return true;
|
||||
@@ -15324,7 +15323,7 @@ void Player::SendPushToPartyResponse(Player *pPlayer, uint32 msg)
|
||||
}
|
||||
}
|
||||
|
||||
void Player::SendQuestUpdateAddItem(Quest const* pQuest, uint32 item_idx, uint32 count)
|
||||
void Player::SendQuestUpdateAddItem(Quest const* /*pQuest*/, uint32 /*item_idx*/, uint32 /*count*/)
|
||||
{
|
||||
WorldPacket data(SMSG_QUESTUPDATE_ADD_ITEM, 0);
|
||||
sLog.outDebug("WORLD: Sent SMSG_QUESTUPDATE_ADD_ITEM");
|
||||
@@ -15484,7 +15483,7 @@ bool Player::LoadPositionFromDB(uint32& mapid, float& x,float& y,float& z,float&
|
||||
return true;
|
||||
}
|
||||
|
||||
void Player::SetHomebind(WorldLocation const& loc, uint32 area_id)
|
||||
void Player::SetHomebind(WorldLocation const& /*loc*/, uint32 /*area_id*/)
|
||||
{
|
||||
m_homebindMapId = GetMapId();
|
||||
m_homebindAreaId = GetAreaId();
|
||||
@@ -16211,7 +16210,7 @@ bool Player::isAllowedToLoot(const Creature* creature)
|
||||
return false;
|
||||
}
|
||||
|
||||
void Player::_LoadActions(QueryResult_AutoPtr result, bool startup)
|
||||
void Player::_LoadActions(QueryResult_AutoPtr result, bool /*startup*/)
|
||||
{
|
||||
if (result)
|
||||
{
|
||||
@@ -18533,14 +18532,12 @@ void Player::CharmSpellInitialize()
|
||||
uint8 addlist = 0;
|
||||
if (charm->GetTypeId() != TYPEID_PLAYER)
|
||||
{
|
||||
CreatureInfo const *cinfo = charm->ToCreature()->GetCreatureInfo();
|
||||
//CreatureInfo const *cinfo = charm->ToCreature()->GetCreatureInfo();
|
||||
//if (cinfo && cinfo->type == CREATURE_TYPE_DEMON && getClass() == CLASS_WARLOCK)
|
||||
{
|
||||
for (uint32 i = 0; i < MAX_SPELL_CHARM; ++i)
|
||||
{
|
||||
if (charmInfo->GetCharmSpell(i)->GetAction())
|
||||
++addlist;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20247,13 +20244,13 @@ bool Player::IsVisibleGloballyFor(Player* u) const
|
||||
}
|
||||
|
||||
template<class T>
|
||||
inline void UpdateVisibilityOf_helper(std::set<uint64>& s64, T* target, std::set<Unit*>& v)
|
||||
inline void UpdateVisibilityOf_helper(std::set<uint64>& s64, T* target, std::set<Unit*>& /*v*/)
|
||||
{
|
||||
s64.insert(target->GetGUID());
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void UpdateVisibilityOf_helper(std::set<uint64>& s64, GameObject* target, std::set<Unit*>& v)
|
||||
inline void UpdateVisibilityOf_helper(std::set<uint64>& s64, GameObject* target, std::set<Unit*>& /*v*/)
|
||||
{
|
||||
if (!target->IsTransport())
|
||||
s64.insert(target->GetGUID());
|
||||
|
||||
@@ -73,7 +73,7 @@ void PointMovementGenerator<T>:: Finalize(T &unit)
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void PointMovementGenerator<T>::MovementInform(T &unit)
|
||||
void PointMovementGenerator<T>::MovementInform(T & /*unit*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -693,7 +693,7 @@ void WorldSession::HandleQuestgiverStatusMultipleQuery(WorldPacket& /*recvPacket
|
||||
SendPacket(&data);
|
||||
}
|
||||
|
||||
void WorldSession::HandleQueryQuestsCompleted(WorldPacket & recv_data)
|
||||
void WorldSession::HandleQueryQuestsCompleted(WorldPacket & /*recv_data*/)
|
||||
{
|
||||
uint32 count = 0;
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)
|
||||
Map const* map = creature.GetBaseMap();
|
||||
|
||||
// For 2D/3D system selection
|
||||
bool is_land_ok = creature.canWalk();
|
||||
bool is_water_ok = creature.canSwim();
|
||||
//bool is_land_ok = creature.canWalk();
|
||||
//bool is_water_ok = creature.canSwim();
|
||||
bool is_air_ok = creature.canFly();
|
||||
|
||||
for (uint32 i = 0; ; ++i)
|
||||
@@ -162,7 +162,7 @@ RandomMovementGenerator<Creature>::Reset(Creature &creature)
|
||||
|
||||
template<>
|
||||
void
|
||||
RandomMovementGenerator<Creature>::Finalize(Creature &creature){}
|
||||
RandomMovementGenerator<Creature>::Finalize(Creature & /*creature*/){}
|
||||
|
||||
template<>
|
||||
bool
|
||||
|
||||
@@ -100,7 +100,7 @@ void ScriptedAI::AttackStartNoMove(Unit* pWho)
|
||||
DoStartNoMovement(pWho);
|
||||
}
|
||||
|
||||
void ScriptedAI::UpdateAI(const uint32 uiDiff)
|
||||
void ScriptedAI::UpdateAI(const uint32 /*uiDiff*/)
|
||||
{
|
||||
//Check if we have a current target
|
||||
if (!UpdateVictim())
|
||||
@@ -195,8 +195,6 @@ Unit* ScriptedAI::SelectUnit(SelectAggroTarget pTarget, uint32 uiPosition)
|
||||
default:
|
||||
return UnitAI::SelectTarget(pTarget, uiPosition);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SpellEntry const* ScriptedAI::SelectSpell(Unit* pTarget, int32 uiSchool, int32 uiMechanic, SelectTargetType selectTargets, uint32 uiPowerCostMin, uint32 uiPowerCostMax, float fRangeMin, float fRangeMax, SelectEffect selectEffects)
|
||||
|
||||
+11
-11
@@ -52,16 +52,16 @@ struct ScriptedAI : public CreatureAI
|
||||
void AttackStartNoMove(Unit *pTarget);
|
||||
|
||||
// Called at any Damage from any attacker (before damage apply)
|
||||
void DamageTaken(Unit* pDone_by, uint32& uiDamage) {}
|
||||
void DamageTaken(Unit* /*pDone_by*/, uint32& /*uiDamage*/) {}
|
||||
|
||||
//Called at World update tick
|
||||
void UpdateAI(const uint32);
|
||||
|
||||
//Called at creature death
|
||||
void JustDied(Unit* who){}
|
||||
void JustDied(Unit* /*who*/){}
|
||||
|
||||
//Called at creature killing another unit
|
||||
void KilledUnit(Unit* who){}
|
||||
void KilledUnit(Unit* /*who*/){}
|
||||
|
||||
// Called when the creature summon successfully other creature
|
||||
void JustSummoned(Creature*) {}
|
||||
@@ -70,16 +70,16 @@ struct ScriptedAI : public CreatureAI
|
||||
void SummonedCreatureDespawn(Creature*) {}
|
||||
|
||||
// Called when hit by a spell
|
||||
void SpellHit(Unit* caster, const SpellEntry *spell) {}
|
||||
void SpellHit(Unit* /*caster*/, const SpellEntry * /*spell*/) {}
|
||||
|
||||
// Called when spell hits a target
|
||||
void SpellHitTarget(Unit *pTarget, const SpellEntry *spell) {}
|
||||
void SpellHitTarget(Unit * /*pTarget*/, const SpellEntry * /*spell*/) {}
|
||||
|
||||
//Called at waypoint reached or PointMovement end
|
||||
void MovementInform(uint32 type, uint32 id){}
|
||||
void MovementInform(uint32 /*type*/, uint32 /*id*/){}
|
||||
|
||||
// Called when AI is temporarily replaced or put back when possess is applied or removed
|
||||
void OnPossess(bool apply) {}
|
||||
void OnPossess(bool /*apply*/) {}
|
||||
|
||||
//*************
|
||||
// Variables
|
||||
@@ -99,7 +99,7 @@ struct ScriptedAI : public CreatureAI
|
||||
void Reset() {}
|
||||
|
||||
//Called at creature aggro either by MoveInLOS or Attack Start
|
||||
void EnterCombat(Unit* who) {}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
//*************
|
||||
//AI Helper Functions
|
||||
@@ -129,7 +129,7 @@ struct ScriptedAI : public CreatureAI
|
||||
void DoTeleportTo(float fX, float fY, float fZ, uint32 uiTime = 0);
|
||||
void DoTeleportTo(const float pos[4]);
|
||||
|
||||
void DoAction(const int32 param) {}
|
||||
void DoAction(const int32 /*param*/) {}
|
||||
|
||||
//Teleports a player without dropping threat (only teleports to same map)
|
||||
void DoTeleportPlayer(Unit* pUnit, float fX, float fY, float fZ, float fO);
|
||||
@@ -259,8 +259,8 @@ struct BossAI : public ScriptedAI
|
||||
void UpdateAI(const uint32 diff) = 0;
|
||||
|
||||
void Reset() { _Reset(); }
|
||||
void EnterCombat(Unit *who) { _EnterCombat(); }
|
||||
void JustDied(Unit *killer) { _JustDied(); }
|
||||
void EnterCombat(Unit * /*who*/) { _EnterCombat(); }
|
||||
void JustDied(Unit * /*killer*/) { _JustDied(); }
|
||||
void JustReachedHome() { me->setActive(false); }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -117,7 +117,7 @@ void npc_escortAI::MoveInLineOfSight(Unit* pWho)
|
||||
}
|
||||
}
|
||||
|
||||
void npc_escortAI::JustDied(Unit* pKiller)
|
||||
void npc_escortAI::JustDied(Unit* /*pKiller*/)
|
||||
{
|
||||
if (!HasEscortState(STATE_ESCORT_ESCORTING) || !m_uiPlayerGUID || !m_pQuestForEscort)
|
||||
return;
|
||||
@@ -300,7 +300,7 @@ void npc_escortAI::UpdateAI(const uint32 uiDiff)
|
||||
UpdateEscortAI(uiDiff);
|
||||
}
|
||||
|
||||
void npc_escortAI::UpdateEscortAI(const uint32 uiDiff)
|
||||
void npc_escortAI::UpdateEscortAI(const uint32 /*uiDiff*/)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
@@ -63,7 +63,7 @@ struct npc_escortAI : public ScriptedAI
|
||||
void AddWaypoint(uint32 id, float x, float y, float z, uint32 WaitTimeMs = 0);
|
||||
|
||||
virtual void WaypointReached(uint32 uiPointId) = 0;
|
||||
virtual void WaypointStart(uint32 uiPointId) {}
|
||||
virtual void WaypointStart(uint32 /*uiPointId*/) {}
|
||||
|
||||
void Start(bool bIsActiveAttacker = true, bool bRun = false, uint64 uiPlayerGUID = 0, const Quest* pQuest = NULL, bool bInstantRespawn = false, bool bCanLoopPath = false);
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ void FollowerAI::MoveInLineOfSight(Unit* pWho)
|
||||
}
|
||||
}
|
||||
|
||||
void FollowerAI::JustDied(Unit* pKiller)
|
||||
void FollowerAI::JustDied(Unit* /*pKiller*/)
|
||||
{
|
||||
if (!HasFollowState(STATE_FOLLOW_INPROGRESS) || !m_uiLeaderGUID || !m_pQuestForFollow)
|
||||
return;
|
||||
@@ -244,7 +244,7 @@ void FollowerAI::UpdateAI(const uint32 uiDiff)
|
||||
UpdateFollowerAI(uiDiff);
|
||||
}
|
||||
|
||||
void FollowerAI::UpdateFollowerAI(const uint32 uiDiff)
|
||||
void FollowerAI::UpdateFollowerAI(const uint32 /*uiDiff*/)
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
@@ -18,7 +18,7 @@ struct guardAI : public ScriptedAI
|
||||
|
||||
void Reset();
|
||||
|
||||
void EnterCombat(Unit *who);
|
||||
void EnterCombat(Unit * /*who*/);
|
||||
|
||||
void JustDied(Unit *Killer);
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ struct SimpleAI : public ScriptedAI
|
||||
|
||||
void Reset();
|
||||
|
||||
void EnterCombat(Unit *who);
|
||||
void EnterCombat(Unit * /*who*/);
|
||||
|
||||
void KilledUnit(Unit *victim);
|
||||
void KilledUnit(Unit * /*victim*/);
|
||||
|
||||
void DamageTaken(Unit *killer, uint32 &damage);
|
||||
|
||||
|
||||
+3
-3
@@ -773,7 +773,7 @@ void Spell::SelectSpellTargets()
|
||||
}
|
||||
}
|
||||
|
||||
void Spell::prepareDataForTriggerSystem(AuraEffect const * triggeredByAura)
|
||||
void Spell::prepareDataForTriggerSystem(AuraEffect const * /*triggeredByAura*/)
|
||||
{
|
||||
//==========================================================================================
|
||||
// Now fill data for trigger system, need know:
|
||||
@@ -1527,7 +1527,7 @@ bool Spell::UpdateChanneledTargetList()
|
||||
|
||||
needAuraMask &= needAliveTargetMask;
|
||||
|
||||
float range;
|
||||
float range = 0;
|
||||
if (needAuraMask)
|
||||
{
|
||||
range = GetSpellMaxRange(m_spellInfo, IsPositiveSpell(m_spellInfo->Id));
|
||||
@@ -3516,7 +3516,7 @@ void Spell::SendCastResult(Player* caster, SpellEntry const* spellInfo, uint8 ca
|
||||
break;
|
||||
case SPELL_FAILED_TOO_MANY_OF_ITEM:
|
||||
{
|
||||
uint32 item;
|
||||
uint32 item = 0;
|
||||
for (int8 x=0;x < 3;x++)
|
||||
if (spellInfo->EffectItemType[x])
|
||||
item = spellInfo->EffectItemType[x];
|
||||
|
||||
@@ -876,7 +876,7 @@ void AuraEffect::CalculateSpellMod()
|
||||
|
||||
void AuraEffect::ChangeAmount(int32 newAmount, bool mark)
|
||||
{
|
||||
Unit * caster = GetCaster();
|
||||
//Unit * caster = GetCaster();
|
||||
// Reapply if amount change
|
||||
if (newAmount != GetAmount())
|
||||
{
|
||||
@@ -2331,7 +2331,7 @@ void AuraEffect::HandleShapeshiftBoosts(Unit * target, bool apply) const
|
||||
{
|
||||
uint32 spellId = 0;
|
||||
uint32 spellId2 = 0;
|
||||
uint32 spellId3 = 0;
|
||||
//uint32 spellId3 = 0;
|
||||
uint32 HotWSpellId = 0;
|
||||
|
||||
switch(GetMiscValue())
|
||||
@@ -3495,7 +3495,7 @@ void AuraEffect::HandleAuraUntrackable(AuraApplication const * aurApp, uint8 mod
|
||||
/*** SKILLS & TALENTS ***/
|
||||
/****************************/
|
||||
|
||||
void AuraEffect::HandleAuraModPetTalentsPoints(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModPetTalentsPoints(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK))
|
||||
return;
|
||||
@@ -3510,7 +3510,7 @@ void AuraEffect::HandleAuraModPetTalentsPoints(AuraApplication const * aurApp, u
|
||||
pet->InitTalentForLevel();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModSkill(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModSkill(AuraApplication const * aurApp, uint8 /*mode*/, bool apply) const
|
||||
{
|
||||
Unit * target = aurApp->GetTarget();
|
||||
|
||||
@@ -3679,7 +3679,7 @@ void AuraEffect::HandleAuraHover(AuraApplication const * aurApp, uint8 mode, boo
|
||||
target->SendMessageToSet(&data,true);
|
||||
}
|
||||
|
||||
void AuraEffect::HandleWaterBreathing(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleWaterBreathing(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & AURA_EFFECT_HANDLE_SEND_FOR_CLIENT_MASK))
|
||||
return;
|
||||
@@ -3968,7 +3968,7 @@ void AuraEffect::HandleAuraControlVehicle(AuraApplication const * aurApp, uint8
|
||||
/*********************************************************/
|
||||
/*** MODIFY SPEED ***/
|
||||
/*********************************************************/
|
||||
void AuraEffect::HandleAuraModIncreaseSpeed(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModIncreaseSpeed(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK))
|
||||
return;
|
||||
@@ -3978,7 +3978,7 @@ void AuraEffect::HandleAuraModIncreaseSpeed(AuraApplication const * aurApp, uint
|
||||
target->UpdateSpeed(MOVE_RUN, true);
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModIncreaseMountedSpeed(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModIncreaseMountedSpeed(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK))
|
||||
return;
|
||||
@@ -4030,7 +4030,7 @@ void AuraEffect::HandleAuraModIncreaseFlightSpeed(AuraApplication const * aurApp
|
||||
target->UpdateSpeed(MOVE_FLIGHT, true);
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModIncreaseSwimSpeed(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModIncreaseSwimSpeed(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK))
|
||||
return;
|
||||
@@ -4040,7 +4040,7 @@ void AuraEffect::HandleAuraModIncreaseSwimSpeed(AuraApplication const * aurApp,
|
||||
target->UpdateSpeed(MOVE_SWIM, true);
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModDecreaseSpeed(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModDecreaseSpeed(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK))
|
||||
return;
|
||||
@@ -4055,7 +4055,7 @@ void AuraEffect::HandleAuraModDecreaseSpeed(AuraApplication const * aurApp, uint
|
||||
target->UpdateSpeed(MOVE_FLIGHT_BACK, true);
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModUseNormalSpeed(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModUseNormalSpeed(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & AURA_EFFECT_HANDLE_REAL))
|
||||
return;
|
||||
@@ -4451,7 +4451,7 @@ void AuraEffect::HandleModPercentStat(AuraApplication const * aurApp, uint8 mode
|
||||
}
|
||||
}
|
||||
|
||||
void AuraEffect::HandleModSpellDamagePercentFromStat(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleModSpellDamagePercentFromStat(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4467,7 +4467,7 @@ void AuraEffect::HandleModSpellDamagePercentFromStat(AuraApplication const * aur
|
||||
target->ToPlayer()->UpdateSpellDamageAndHealingBonus();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleModSpellHealingPercentFromStat(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleModSpellHealingPercentFromStat(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4481,7 +4481,7 @@ void AuraEffect::HandleModSpellHealingPercentFromStat(AuraApplication const * au
|
||||
target->ToPlayer()->UpdateSpellDamageAndHealingBonus();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleModSpellDamagePercentFromAttackPower(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleModSpellDamagePercentFromAttackPower(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4497,7 +4497,7 @@ void AuraEffect::HandleModSpellDamagePercentFromAttackPower(AuraApplication cons
|
||||
target->ToPlayer()->UpdateSpellDamageAndHealingBonus();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleModSpellHealingPercentFromAttackPower(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleModSpellHealingPercentFromAttackPower(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4511,7 +4511,7 @@ void AuraEffect::HandleModSpellHealingPercentFromAttackPower(AuraApplication con
|
||||
target->ToPlayer()->UpdateSpellDamageAndHealingBonus();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleModHealingDone(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleModHealingDone(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4561,7 +4561,7 @@ void AuraEffect::HandleModTotalPercentStat(AuraApplication const * aurApp, uint8
|
||||
}
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModResistenceOfStatPercent(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModResistenceOfStatPercent(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4583,7 +4583,7 @@ void AuraEffect::HandleAuraModResistenceOfStatPercent(AuraApplication const * au
|
||||
target->UpdateArmor();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModExpertise(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModExpertise(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4600,7 +4600,7 @@ void AuraEffect::HandleAuraModExpertise(AuraApplication const * aurApp, uint8 mo
|
||||
/********************************/
|
||||
/*** HEAL & ENERGIZE ***/
|
||||
/********************************/
|
||||
void AuraEffect::HandleModPowerRegen(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleModPowerRegen(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4616,7 +4616,7 @@ void AuraEffect::HandleModPowerRegen(AuraApplication const * aurApp, uint8 mode,
|
||||
// other powers are not immediate effects - implemented in Player::Regenerate, Creature::Regenerate
|
||||
}
|
||||
|
||||
void AuraEffect::HandleModPowerRegenPCT(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleModPowerRegenPCT(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4632,7 +4632,7 @@ void AuraEffect::HandleModPowerRegenPCT(AuraApplication const * aurApp, uint8 mo
|
||||
// other powers are not immediate effects - implemented in Player::Regenerate, Creature::Regenerate
|
||||
}
|
||||
|
||||
void AuraEffect::HandleModManaRegen(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleModManaRegen(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4764,7 +4764,7 @@ void AuraEffect::HandleAuraIncreaseBaseHealthPercent(AuraApplication const * aur
|
||||
/*** FIGHT ***/
|
||||
/********************************/
|
||||
|
||||
void AuraEffect::HandleAuraModParryPercent(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModParryPercent(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4777,7 +4777,7 @@ void AuraEffect::HandleAuraModParryPercent(AuraApplication const * aurApp, uint8
|
||||
target->ToPlayer()->UpdateParryPercentage();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModDodgePercent(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModDodgePercent(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4790,7 +4790,7 @@ void AuraEffect::HandleAuraModDodgePercent(AuraApplication const * aurApp, uint8
|
||||
target->ToPlayer()->UpdateDodgePercentage();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModBlockPercent(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModBlockPercent(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4803,7 +4803,7 @@ void AuraEffect::HandleAuraModBlockPercent(AuraApplication const * aurApp, uint8
|
||||
target->ToPlayer()->UpdateBlockPercentage();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModRegenInterrupt(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModRegenInterrupt(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -4891,7 +4891,7 @@ void AuraEffect::HandleModSpellCritChance(AuraApplication const * aurApp, uint8
|
||||
target->m_baseSpellCritChance += (apply) ? GetAmount():-GetAmount();
|
||||
}
|
||||
|
||||
void AuraEffect::HandleModSpellCritChanceShool(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleModSpellCritChanceShool(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -5099,7 +5099,7 @@ void AuraEffect::HandleAuraModRangedAttackPowerPercent(AuraApplication const * a
|
||||
target->HandleStatModifier(UNIT_MOD_ATTACK_POWER_RANGED, TOTAL_PCT, float(GetAmount()), apply);
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModRangedAttackPowerOfStatPercent(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModRangedAttackPowerOfStatPercent(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -5111,7 +5111,7 @@ void AuraEffect::HandleAuraModRangedAttackPowerOfStatPercent(AuraApplication con
|
||||
target->ToPlayer()->UpdateAttackPowerAndDamage(true);
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModAttackPowerOfStatPercent(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModAttackPowerOfStatPercent(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -5123,7 +5123,7 @@ void AuraEffect::HandleAuraModAttackPowerOfStatPercent(AuraApplication const * a
|
||||
target->ToPlayer()->UpdateAttackPowerAndDamage(false);
|
||||
}
|
||||
|
||||
void AuraEffect::HandleAuraModAttackPowerOfArmor(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleAuraModAttackPowerOfArmor(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
|
||||
return;
|
||||
@@ -5358,7 +5358,7 @@ void AuraEffect::HandleArenaPreparation(AuraApplication const * aurApp, uint8 mo
|
||||
}
|
||||
}
|
||||
|
||||
void AuraEffect::HandleNoReagentUseAura(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void AuraEffect::HandleNoReagentUseAura(AuraApplication const * aurApp, uint8 mode, bool /*apply*/) const
|
||||
{
|
||||
if (!(mode & AURA_EFFECT_HANDLE_REAL))
|
||||
return;
|
||||
|
||||
@@ -101,15 +101,15 @@ class AuraEffect
|
||||
|
||||
public:
|
||||
// aura effect handlers
|
||||
void HandleNULL(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void HandleNULL(AuraApplication const * /*aurApp*/, uint8 /*mode*/, bool /*apply*/) const
|
||||
{
|
||||
// not implemented
|
||||
}
|
||||
void HandleUnused(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void HandleUnused(AuraApplication const * /*aurApp*/, uint8 /*mode*/, bool /*apply*/) const
|
||||
{
|
||||
// useless
|
||||
}
|
||||
void HandleNoImmediateEffect(AuraApplication const * aurApp, uint8 mode, bool apply) const
|
||||
void HandleNoImmediateEffect(AuraApplication const * /*aurApp*/, uint8 /*mode*/, bool /*apply*/) const
|
||||
{
|
||||
// aura type not have immediate effect at add/remove and handled by ID in other code place
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ void AuraApplication::_Remove()
|
||||
}
|
||||
}
|
||||
|
||||
bool AuraApplication::_CheckPositive(Unit * caster) const
|
||||
bool AuraApplication::_CheckPositive(Unit * /*caster*/) const
|
||||
{
|
||||
// Aura is positive when it is casted by friend and at least one aura is positive
|
||||
// or when it is casted by enemy and at least one aura is negative
|
||||
@@ -527,7 +527,7 @@ void Aura::UpdateTargetMap(Unit * caster, bool apply)
|
||||
// targets have to be registered and not have effect applied yet to use this function
|
||||
void Aura::_ApplyEffectForTargets(uint8 effIndex)
|
||||
{
|
||||
Unit * caster = GetCaster();
|
||||
//Unit * caster = GetCaster();
|
||||
// prepare list of aura targets
|
||||
UnitList targetList;
|
||||
for (ApplicationMap::iterator appIter = m_applications.begin(); appIter != m_applications.end(); ++appIter)
|
||||
@@ -711,7 +711,7 @@ bool Aura::DropCharge()
|
||||
return false;
|
||||
}
|
||||
|
||||
void Aura::SetStackAmount(uint8 stackAmount, bool applied)
|
||||
void Aura::SetStackAmount(uint8 stackAmount, bool /*applied*/)
|
||||
{
|
||||
if (stackAmount != m_stackAmount)
|
||||
{
|
||||
@@ -1618,7 +1618,7 @@ void DynObjAura::Remove(AuraRemoveMode removeMode)
|
||||
_Remove(removeMode);
|
||||
}
|
||||
|
||||
void DynObjAura::FillTargetMap(std::map<Unit *, uint8> & targets, Unit * caster)
|
||||
void DynObjAura::FillTargetMap(std::map<Unit *, uint8> & targets, Unit * /*caster*/)
|
||||
{
|
||||
Unit * dynObjOwnerCaster = GetDynobjOwner()->GetCaster();
|
||||
float radius = GetDynobjOwner()->GetRadius();
|
||||
|
||||
+12
-12
@@ -312,7 +312,7 @@ void Spell::EffectEnvirinmentalDMG(uint32 i)
|
||||
m_caster->ToPlayer()->EnvironmentalDamage(DAMAGE_FIRE, damage);
|
||||
}
|
||||
|
||||
void Spell::EffectSchoolDMG(uint32 effect_idx)
|
||||
void Spell::EffectSchoolDMG(uint32 /*effect_idx*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -356,7 +356,7 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
|
||||
++count;
|
||||
if (count)
|
||||
{
|
||||
uint32 spellId;
|
||||
uint32 spellId = 0;
|
||||
switch (m_spellInfo->Id)
|
||||
{
|
||||
case 28062: spellId = 29659; break;
|
||||
@@ -989,7 +989,7 @@ void Spell::EffectDummy(uint32 i)
|
||||
|
||||
Creature* creatureTarget = unitTarget->ToCreature();
|
||||
|
||||
GameObject* Crystal_Prison = m_caster->SummonGameObject(179644, creatureTarget->GetPositionX(), creatureTarget->GetPositionY(), creatureTarget->GetPositionZ(), creatureTarget->GetOrientation(), 0, 0, 0, 0, creatureTarget->GetRespawnTime()-time(NULL));
|
||||
m_caster->SummonGameObject(179644, creatureTarget->GetPositionX(), creatureTarget->GetPositionY(), creatureTarget->GetPositionZ(), creatureTarget->GetOrientation(), 0, 0, 0, 0, creatureTarget->GetRespawnTime()-time(NULL));
|
||||
sLog.outDebug("SummonGameObject at SpellEfects.cpp EffectDummy for Spell 23019");
|
||||
|
||||
creatureTarget->ForcedDespawn();
|
||||
@@ -2514,7 +2514,7 @@ void Spell::EffectJump(uint32 i)
|
||||
m_caster->GetMotionMaster()->MoveJump(x, y, z, speedXY, speedZ);
|
||||
}
|
||||
|
||||
void Spell::EffectTeleportUnits(uint32 i)
|
||||
void Spell::EffectTeleportUnits(uint32 /*i*/)
|
||||
{
|
||||
if (!unitTarget || unitTarget->isInFlight())
|
||||
return;
|
||||
@@ -2753,7 +2753,7 @@ void Spell::EffectPowerBurn(uint32 i)
|
||||
if (damage < 0)
|
||||
return;
|
||||
|
||||
Unit* caster = m_originalCaster ? m_originalCaster : m_caster;
|
||||
//Unit* caster = m_originalCaster ? m_originalCaster : m_caster;
|
||||
|
||||
// burn x% of target's mana, up to maximum of 2x% of caster's mana (Mana Burn)
|
||||
if (m_spellInfo->ManaCostPercentage)
|
||||
@@ -2980,7 +2980,7 @@ void Spell::EffectHealthLeech(uint32 i)
|
||||
// m_damage+=new_damage;
|
||||
}
|
||||
|
||||
void Spell::DoCreateItem(uint32 i, uint32 itemtype)
|
||||
void Spell::DoCreateItem(uint32 /*i*/, uint32 itemtype)
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
@@ -3125,7 +3125,7 @@ void Spell::EffectCreateItem2(uint32 i)
|
||||
}
|
||||
}
|
||||
|
||||
void Spell::EffectCreateRandomItem(uint32 i)
|
||||
void Spell::EffectCreateRandomItem(uint32 /*i*/)
|
||||
{
|
||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
@@ -4435,7 +4435,7 @@ void Spell::EffectTaunt(uint32 /*i*/)
|
||||
unitTarget->ToCreature()->AI()->AttackStart(m_caster);
|
||||
}
|
||||
|
||||
void Spell::EffectWeaponDmg(uint32 i)
|
||||
void Spell::EffectWeaponDmg(uint32 /*i*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -4755,7 +4755,7 @@ void Spell::EffectHealMaxHealth(uint32 /*i*/)
|
||||
}
|
||||
}
|
||||
|
||||
void Spell::EffectInterruptCast(uint32 i)
|
||||
void Spell::EffectInterruptCast(uint32 /*i*/)
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
@@ -6701,7 +6701,7 @@ void Spell::EffectQuestComplete(uint32 i)
|
||||
pPlayer->AreaExploredOrEventHappens(quest_id);
|
||||
}
|
||||
|
||||
void Spell::EffectForceDeselect(uint32 i)
|
||||
void Spell::EffectForceDeselect(uint32 /*i*/)
|
||||
{
|
||||
WorldPacket data(SMSG_CLEAR_TARGET, 8);
|
||||
data << uint64(m_caster->GetGUID());
|
||||
@@ -7456,7 +7456,7 @@ void Spell::SummonGuardian(uint32 i, uint32 entry, SummonPropertiesEntry const *
|
||||
if (Player* modOwner = m_originalCaster->GetSpellModOwner())
|
||||
modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_DURATION, duration);
|
||||
|
||||
TempSummonType summonType = (duration == 0) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN;
|
||||
//TempSummonType summonType = (duration == 0) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN;
|
||||
Map *map = caster->GetMap();
|
||||
|
||||
for (uint32 count = 0; count < amount; ++count)
|
||||
@@ -7614,7 +7614,7 @@ void Spell::EffectCastButtons(uint32 i)
|
||||
}
|
||||
}
|
||||
|
||||
void Spell::EffectRechargeManaGem(uint32 i)
|
||||
void Spell::EffectRechargeManaGem(uint32 /*i*/)
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
@@ -3053,7 +3053,6 @@ bool IsDiminishingReturnsGroupDurationLimited(DiminishingGroup group)
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
DiminishingLevels GetDiminishingReturnsMaxLevel(DiminishingGroup group)
|
||||
@@ -3065,7 +3064,6 @@ DiminishingLevels GetDiminishingReturnsMaxLevel(DiminishingGroup group)
|
||||
default:
|
||||
return DIMINISHING_LEVEL_IMMUNE;
|
||||
}
|
||||
return DIMINISHING_LEVEL_IMMUNE;
|
||||
}
|
||||
|
||||
DiminishingReturnsType GetDiminishingReturnsGroupType(DiminishingGroup group)
|
||||
|
||||
@@ -251,7 +251,7 @@ TargetedMovementGenerator<T>::GetTarget() const
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void TargetedMovementGenerator<T>::MovementInform(T &unit)
|
||||
void TargetedMovementGenerator<T>::MovementInform(T & /*unit*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
//==============================================================
|
||||
|
||||
// The pHatingUnit is not used yet
|
||||
float ThreatCalcHelper::calcThreat(Unit* pHatedUnit, Unit* pHatingUnit, float fThreat, SpellSchoolMask schoolMask, SpellEntry const *pThreatSpell)
|
||||
float ThreatCalcHelper::calcThreat(Unit* pHatedUnit, Unit* /*pHatingUnit*/, float fThreat, SpellSchoolMask schoolMask, SpellEntry const *pThreatSpell)
|
||||
{
|
||||
if (pThreatSpell)
|
||||
if (Player* modOwner = pHatedUnit->GetSpellModOwner())
|
||||
|
||||
+14
-14
@@ -1526,7 +1526,7 @@ void Unit::HandleEmoteCommand(uint32 anim_id)
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
uint32 Unit::CalcArmorReducedDamage(Unit* pVictim, const uint32 damage, SpellEntry const *spellInfo, WeaponAttackType attackType)
|
||||
uint32 Unit::CalcArmorReducedDamage(Unit* pVictim, const uint32 damage, SpellEntry const *spellInfo, WeaponAttackType /*attackType*/)
|
||||
{
|
||||
uint32 newdamage = 0;
|
||||
float armor = pVictim->GetArmor();
|
||||
@@ -2172,7 +2172,7 @@ void Unit::CalcAbsorbResist(Unit *pVictim, SpellSchoolMask schoolMask, DamageEff
|
||||
}
|
||||
}
|
||||
|
||||
void Unit::AttackerStateUpdate (Unit *pVictim, WeaponAttackType attType, bool extra)
|
||||
void Unit::AttackerStateUpdate (Unit *pVictim, WeaponAttackType attType, bool /*extra*/)
|
||||
{
|
||||
if (hasUnitState(UNIT_STAT_CANNOT_AUTOATTACK) || HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED))
|
||||
return;
|
||||
@@ -5059,7 +5059,7 @@ void Unit::SendAttackStateUpdate(CalcDamageInfo *damageInfo)
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
void Unit::SendAttackStateUpdate(uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount)
|
||||
void Unit::SendAttackStateUpdate(uint32 HitInfo, Unit *target, uint8 /*SwingType*/, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount)
|
||||
{
|
||||
CalcDamageInfo dmgInfo;
|
||||
dmgInfo.HitInfo = HitInfo;
|
||||
@@ -5074,7 +5074,7 @@ void Unit::SendAttackStateUpdate(uint32 HitInfo, Unit *target, uint8 SwingType,
|
||||
SendAttackStateUpdate(&dmgInfo);
|
||||
}
|
||||
|
||||
bool Unit::HandleHasteAuraProc(Unit *pVictim, uint32 damage, AuraEffect* triggeredByAura, SpellEntry const * procSpell, uint32 /*procFlag*/, uint32 /*procEx*/, uint32 cooldown)
|
||||
bool Unit::HandleHasteAuraProc(Unit *pVictim, uint32 damage, AuraEffect* triggeredByAura, SpellEntry const * /*procSpell*/, uint32 /*procFlag*/, uint32 /*procEx*/, uint32 cooldown)
|
||||
{
|
||||
SpellEntry const *hasteSpell = triggeredByAura->GetSpellProto();
|
||||
|
||||
@@ -7449,11 +7449,11 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
|
||||
return true;
|
||||
}
|
||||
bool Unit::HandleObsModEnergyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* triggeredByAura, SpellEntry const * procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown)
|
||||
bool Unit::HandleObsModEnergyAuraProc(Unit *pVictim, uint32 /*damage*/, AuraEffect* triggeredByAura, SpellEntry const * /*procSpell*/, uint32 /*procFlag*/, uint32 /*procEx*/, uint32 cooldown)
|
||||
{
|
||||
SpellEntry const *dummySpell = triggeredByAura->GetSpellProto ();
|
||||
uint32 effIndex = triggeredByAura->GetEffIndex();
|
||||
int32 triggerAmount = triggeredByAura->GetAmount();
|
||||
//uint32 effIndex = triggeredByAura->GetEffIndex();
|
||||
//int32 triggerAmount = triggeredByAura->GetAmount();
|
||||
|
||||
Item* castItem = triggeredByAura->GetBase()->GetCastItemGUID() && GetTypeId() == TYPEID_PLAYER
|
||||
? this->ToPlayer()->GetItemByGuid(triggeredByAura->GetBase()->GetCastItemGUID()) : NULL;
|
||||
@@ -7506,11 +7506,11 @@ bool Unit::HandleObsModEnergyAuraProc(Unit *pVictim, uint32 damage, AuraEffect*
|
||||
this->ToPlayer()->AddSpellCooldown(triggered_spell_id,0,time(NULL) + cooldown);
|
||||
return true;
|
||||
}
|
||||
bool Unit::HandleModDamagePctTakenAuraProc(Unit *pVictim, uint32 damage, AuraEffect* triggeredByAura, SpellEntry const * procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown)
|
||||
bool Unit::HandleModDamagePctTakenAuraProc(Unit *pVictim, uint32 /*damage*/, AuraEffect* triggeredByAura, SpellEntry const * /*procSpell*/, uint32 /*procFlag*/, uint32 /*procEx*/, uint32 cooldown)
|
||||
{
|
||||
SpellEntry const *dummySpell = triggeredByAura->GetSpellProto ();
|
||||
uint32 effIndex = triggeredByAura->GetEffIndex();
|
||||
int32 triggerAmount = triggeredByAura->GetAmount();
|
||||
//uint32 effIndex = triggeredByAura->GetEffIndex();
|
||||
//int32 triggerAmount = triggeredByAura->GetAmount();
|
||||
|
||||
Item* castItem = triggeredByAura->GetBase()->GetCastItemGUID() && GetTypeId() == TYPEID_PLAYER
|
||||
? this->ToPlayer()->GetItemByGuid(triggeredByAura->GetBase()->GetCastItemGUID()) : NULL;
|
||||
@@ -7568,7 +7568,7 @@ bool Unit::HandleModDamagePctTakenAuraProc(Unit *pVictim, uint32 damage, AuraEff
|
||||
|
||||
// Used in case when access to whole aura is needed
|
||||
// All procs should be handled like this...
|
||||
bool Unit::HandleAuraProc(Unit *pVictim, uint32 damage, Aura * triggeredByAura, SpellEntry const * procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown, bool * handled)
|
||||
bool Unit::HandleAuraProc(Unit * /*pVictim*/, uint32 damage, Aura * triggeredByAura, SpellEntry const * procSpell, uint32 /*procFlag*/, uint32 procEx, uint32 /*cooldown*/, bool * handled)
|
||||
{
|
||||
SpellEntry const *dummySpell = triggeredByAura->GetSpellProto();
|
||||
|
||||
@@ -8411,7 +8411,7 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Unit::HandleOverrideClassScriptAuraProc(Unit *pVictim, uint32 damage, AuraEffect *triggeredByAura, SpellEntry const *procSpell, uint32 cooldown)
|
||||
bool Unit::HandleOverrideClassScriptAuraProc(Unit *pVictim, uint32 /*damage*/, AuraEffect *triggeredByAura, SpellEntry const *procSpell, uint32 cooldown)
|
||||
{
|
||||
int32 scriptId = triggeredByAura->GetMiscValue();
|
||||
|
||||
@@ -11586,7 +11586,7 @@ bool Unit::isVisibleForOrDetect(Unit const* u, bool detect, bool inVisibleList,
|
||||
return u->canSeeOrDetect(this, detect, inVisibleList, is3dDistance);
|
||||
}
|
||||
|
||||
bool Unit::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool is3dDistance) const
|
||||
bool Unit::canSeeOrDetect(Unit const* /*u*/, bool /*detect*/, bool /*inVisibleList*/, bool /*is3dDistance*/) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -12241,7 +12241,7 @@ int32 Unit::ApplyEffectModifiers(SpellEntry const* spellProto, uint8 effect_inde
|
||||
return value;
|
||||
}
|
||||
|
||||
int32 Unit::CalculateSpellDamage(Unit const* target, SpellEntry const* spellProto, uint8 effect_index, int32 const* effBasePoints)
|
||||
int32 Unit::CalculateSpellDamage(Unit const* /*target*/, SpellEntry const* spellProto, uint8 effect_index, int32 const* effBasePoints)
|
||||
{
|
||||
int32 level = int32(getLevel());
|
||||
if (level > int32(spellProto->maxLevel) && spellProto->maxLevel > 0)
|
||||
|
||||
+1
-1
@@ -217,7 +217,7 @@ void UnitAI::DoCast(uint32 spellId)
|
||||
{
|
||||
const SpellEntry * spellInfo = GetSpellStore()->LookupEntry(spellId);
|
||||
bool playerOnly = spellInfo->AttributesEx3 & SPELL_ATTR_EX3_PLAYERS_ONLY;
|
||||
float range = GetSpellMaxRange(spellInfo, false);
|
||||
//float range = GetSpellMaxRange(spellInfo, false);
|
||||
target = SelectTarget(SELECT_TARGET_RANDOM, 0, GetSpellMaxRange(spellInfo, false), playerOnly);
|
||||
break;
|
||||
}
|
||||
|
||||
+5
-4
@@ -47,7 +47,7 @@ class UnitAI
|
||||
explicit UnitAI(Unit *u) : me(u) {}
|
||||
virtual ~UnitAI() {}
|
||||
|
||||
virtual bool CanAIAttack(const Unit *who) const { return true; }
|
||||
virtual bool CanAIAttack(const Unit * /*who*/) const { return true; }
|
||||
virtual void AttackStart(Unit *);
|
||||
virtual void UpdateAI(const uint32 diff) = 0;
|
||||
|
||||
@@ -60,9 +60,9 @@ class UnitAI
|
||||
|
||||
// Pass parameters between AI
|
||||
virtual void DoAction(const int32 param = 0) {}
|
||||
virtual uint32 GetData(uint32 id = 0) { return 0; }
|
||||
virtual void SetData(uint32 id, uint32 value) {}
|
||||
virtual void SetGUID(const uint64 &guid, int32 id = 0) {}
|
||||
virtual uint32 GetData(uint32 /*id = 0*/) { return 0; }
|
||||
virtual void SetData(uint32 /*id*/, uint32 /*value*/) {}
|
||||
virtual void SetGUID(const uint64 &/*guid*/, int32 id = 0) {}
|
||||
virtual uint64 GetGUID(int32 id = 0) { return 0; }
|
||||
|
||||
Unit* SelectTarget(SelectAggroTarget targetType, uint32 position = 0, float dist = 0.0f, bool playerOnly = false, int32 aura = 0);
|
||||
@@ -155,6 +155,7 @@ class SimpleCharmedAI : public PlayerAI
|
||||
{
|
||||
public:
|
||||
void UpdateAI(const uint32 diff);
|
||||
SimpleCharmedAI(Player *p): PlayerAI(p) {}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -50,7 +50,7 @@ void WaypointStore::Load()
|
||||
return;
|
||||
}
|
||||
|
||||
WaypointPath* path_data;
|
||||
WaypointPath* path_data = NULL;
|
||||
uint32 total_records = result->GetRowCount();
|
||||
|
||||
barGoLink bar(total_records);
|
||||
|
||||
@@ -31,19 +31,19 @@
|
||||
|
||||
template<class T>
|
||||
void
|
||||
WaypointMovementGenerator<T>::Initialize(T &u){}
|
||||
WaypointMovementGenerator<T>::Initialize(T & /*u*/){}
|
||||
|
||||
template<>
|
||||
void
|
||||
WaypointMovementGenerator<Creature>::Finalize(Creature &u){}
|
||||
WaypointMovementGenerator<Creature>::Finalize(Creature & /*u*/){}
|
||||
|
||||
template<>
|
||||
void
|
||||
WaypointMovementGenerator<Player>::Finalize(Player &u){}
|
||||
WaypointMovementGenerator<Player>::Finalize(Player & /*u*/){}
|
||||
|
||||
template<class T>
|
||||
void
|
||||
WaypointMovementGenerator<T>::MovementInform(T &unit){}
|
||||
WaypointMovementGenerator<T>::MovementInform(T & /*unit*/){}
|
||||
|
||||
template<>
|
||||
void WaypointMovementGenerator<Creature>::MovementInform(Creature &unit)
|
||||
@@ -62,20 +62,20 @@ bool WaypointMovementGenerator<Creature>::GetDestination(float &x, float &y, flo
|
||||
}
|
||||
|
||||
template<>
|
||||
bool WaypointMovementGenerator<Player>::GetDestination(float &x, float &y, float &z) const
|
||||
bool WaypointMovementGenerator<Player>::GetDestination(float & /*x*/, float & /*y*/, float & /*z*/) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
template<>
|
||||
void WaypointMovementGenerator<Creature>::Reset(Creature &unit)
|
||||
void WaypointMovementGenerator<Creature>::Reset(Creature & /*unit*/unit)
|
||||
{
|
||||
StopedByPlayer = true;
|
||||
i_nextMoveTime.Reset(0);
|
||||
}
|
||||
|
||||
template<>
|
||||
void WaypointMovementGenerator<Player>::Reset(Player &unit){}
|
||||
void WaypointMovementGenerator<Player>::Reset(Player & /*unit*/){}
|
||||
|
||||
template<>
|
||||
void WaypointMovementGenerator<Creature>::InitTraveller(Creature &unit, const WaypointData &node)
|
||||
@@ -122,11 +122,11 @@ WaypointMovementGenerator<Creature>::Initialize(Creature &u)
|
||||
}
|
||||
|
||||
template<>
|
||||
void WaypointMovementGenerator<Player>::InitTraveller(Player &unit, const WaypointData &node){}
|
||||
void WaypointMovementGenerator<Player>::InitTraveller(Player & /*unit*/, const WaypointData & /*node*/){}
|
||||
|
||||
template<class T>
|
||||
bool
|
||||
WaypointMovementGenerator<T>::Update(T &unit, const uint32 &diff)
|
||||
WaypointMovementGenerator<T>::Update(T & /*unit*/, const uint32 & /*diff*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
+3
-3
@@ -1913,8 +1913,8 @@ void World::Update(uint32 diff)
|
||||
{
|
||||
if (m_timers[WUPDATE_CLEANDB].Passed())
|
||||
{
|
||||
uint32 tmpDiff = (m_gameTime - m_startTime);
|
||||
uint32 maxClientsNum = sWorld.GetMaxActiveSessionCount();
|
||||
//uint32 tmpDiff = (m_gameTime - m_startTime);
|
||||
//uint32 maxClientsNum = sWorld.GetMaxActiveSessionCount();
|
||||
|
||||
m_timers[WUPDATE_CLEANDB].Reset();
|
||||
loginDatabase.PExecute("DELETE FROM logs WHERE (time + %u) < "UI64FMTD";",
|
||||
@@ -2581,7 +2581,7 @@ void World::ResetWeeklyQuests()
|
||||
sWorld.setWorldState(WS_WEEKLY_QUEST_RESET_TIME, uint64(m_NextWeeklyQuestReset));
|
||||
}
|
||||
|
||||
void World::SetPlayerLimit(int32 limit, bool needUpdate)
|
||||
void World::SetPlayerLimit(int32 limit, bool /*needUpdate*/)
|
||||
{
|
||||
m_playerLimit = limit;
|
||||
}
|
||||
|
||||
@@ -252,10 +252,11 @@ bool WorldSession::Update(uint32 /*diff*/)
|
||||
LogUnprocessedTail(packet);
|
||||
break;
|
||||
case STATUS_NEVER:
|
||||
break;
|
||||
/*
|
||||
sLog.outError("SESSION: received not allowed opcode %s (0x%.4X)",
|
||||
LookupOpcodeName(packet->GetOpcode()),
|
||||
packet->GetOpcode());
|
||||
*/
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,11 +31,11 @@ class ZoneScript
|
||||
public:
|
||||
explicit ZoneScript() {}
|
||||
|
||||
virtual uint32 GetCreatureEntry(uint32 guidlow, const CreatureData *data) { return data->id; }
|
||||
virtual uint32 GetGameObjectEntry(uint32 guidlow, uint32 entry) { return entry; }
|
||||
virtual uint32 GetCreatureEntry(uint32 /*guidlow*/, const CreatureData *data) { return data->id; }
|
||||
virtual uint32 GetGameObjectEntry(uint32 /*guidlow*/, uint32 entry) { return entry; }
|
||||
|
||||
virtual void OnCreatureCreate(Creature *, bool add) {}
|
||||
virtual void OnGameObjectCreate(GameObject *go, bool add) {}
|
||||
virtual void OnCreatureCreate(Creature *, bool /*add*/) {}
|
||||
virtual void OnGameObjectCreate(GameObject * /*go*/, bool /*add*/) {}
|
||||
|
||||
//All-purpose data storage 64 bit
|
||||
virtual uint64 GetData64(uint32 /*DataId*/) { return 0; }
|
||||
@@ -45,7 +45,7 @@ class ZoneScript
|
||||
virtual uint32 GetData(uint32 /*DataId*/) { return 0; }
|
||||
virtual void SetData(uint32 /*DataId*/, uint32 /*Value*/) {}
|
||||
|
||||
virtual void ProcessEvent(GameObject *obj, uint32 eventId) {}
|
||||
virtual void ProcessEvent(GameObject * /*obj*/, uint32 /*eventId*/) {}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user