Skip to content

Commit

Permalink
Core: Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Michael committed Jun 28, 2014
1 parent 5562f61 commit d15db5f
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/server/game/Battlegrounds/ArenaScore.h
Expand Up @@ -36,7 +36,7 @@ struct ArenaScore : public BattlegroundScore

void AppendToPacket(WorldPacket& data, ByteBuffer& content) final
{
int32 primaryTree;
uint32 primaryTree = 0;
if (Player* player = ObjectAccessor::FindPlayer(PlayerGuid))
primaryTree = player->GetPrimaryTalentTree(player->GetActiveSpec());

Expand Down
1 change: 0 additions & 1 deletion src/server/game/Battlegrounds/Battleground.cpp
Expand Up @@ -1451,7 +1451,6 @@ void Battleground::BuildPvPLogDataPacket(WorldPacket& data)

size_t countPos = data.bitwpos();
data.WriteBits(0, 21);
uint32 count = 0;
for (auto const& score : PlayerScores)
score.second->AppendToPacket(data, buff);

Expand Down
4 changes: 2 additions & 2 deletions src/server/game/Battlegrounds/BattlegroundScore.h
Expand Up @@ -91,14 +91,14 @@ struct BattlegroundScore

virtual void AppendToPacket(WorldPacket& data, ByteBuffer& content)
{
int32 primaryTree;
uint32 primaryTree = 0;
if (Player* player = ObjectAccessor::FindPlayer(PlayerGuid))
primaryTree = player->GetPrimaryTalentTree(player->GetActiveSpec());

data.WriteBit(0); // Unk 1
data.WriteBit(0); // Unk 2
data.WriteBit(PlayerGuid[2]);
data.WriteBit(/*!IsArena*/ 1); // IsArena
data.WriteBit(/*!IsArena*/ 1); // IsArena
data.WriteBit(0); // Unk 4
data.WriteBit(0); // Unk 5
data.WriteBit(0); // Unk 6
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Entities/Corpse/Corpse.cpp
Expand Up @@ -182,7 +182,7 @@ bool Corpse::LoadCorpseFromDB(uint32 guid, Field* fields)
m_time = time_t(fields[11].GetUInt32());

uint32 instanceId = fields[13].GetUInt32();
uint32 phaseMask = fields[14].GetUInt32();
//uint32 phaseMask = fields[14].GetUInt32();

// place
SetLocationInstanceId(instanceId);
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Entities/Creature/Creature.cpp
Expand Up @@ -743,7 +743,7 @@ void Creature::Motion_Initialize()
GetMotionMaster()->Initialize();
}

bool Creature::Create(uint32 guidlow, Map* map, uint32 phaseMask, uint32 entry, float x, float y, float z, float ang, CreatureData const* data /*= nullptr*/, uint32 vehId /*= 0*/)
bool Creature::Create(uint32 guidlow, Map* map, uint32 /*phaseMask*/, uint32 entry, float x, float y, float z, float ang, CreatureData const* data /*= nullptr*/, uint32 vehId /*= 0*/)
{
ASSERT(map);
SetMap(map);
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Entities/GameObject/GameObject.cpp
Expand Up @@ -167,7 +167,7 @@ void GameObject::RemoveFromWorld()
}
}

bool GameObject::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 phaseMask, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 animprogress, GOState go_state, uint32 artKit)
bool GameObject::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 /*phaseMask*/, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 animprogress, GOState go_state, uint32 artKit)
{
ASSERT(map);
SetMap(map);
Expand Down
6 changes: 3 additions & 3 deletions src/server/game/Grids/Notifiers/GridNotifiers.h
Expand Up @@ -195,13 +195,13 @@ namespace Trinity
template<class Check>
struct WorldObjectLastSearcher
{
uint32 i_mapTypeMask;
WorldObject* &i_object;
WorldObject const* _searcher;
WorldObject* &i_object;
Check &i_check;
uint32 i_mapTypeMask;

WorldObjectLastSearcher(WorldObject const* searcher, WorldObject* & result, Check& check, uint32 mapTypeMask = GRID_MAP_TYPE_MASK_ALL)
: i_mapTypeMask(mapTypeMask), _searcher(searcher), i_object(result), i_check(check) { }
: _searcher(searcher), i_object(result), i_check(check), i_mapTypeMask(mapTypeMask) { }

void Visit(GameObjectMapType &m);
void Visit(PlayerMapType &m);
Expand Down
6 changes: 3 additions & 3 deletions src/server/scripts/Commands/cs_debug.cpp
Expand Up @@ -1390,14 +1390,14 @@ class debug_commandscript : public CommandScript
return true;
}

static bool HandleDebugPhaseCommand(ChatHandler* handler, char const* /*args*/)
static bool HandleDebugPhaseCommand(ChatHandler* /*handler*/, char const* /*args*/)
{
/*/
Unit* unit = handler->getSelectedUnit();
Player* player = handler->GetSession()->GetPlayer();
if (unit && unit->GetTypeId() == TYPEID_PLAYER)
player = unit->ToPlayer();


*/
return true;
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/server/scripts/Commands/cs_gobject.cpp
Expand Up @@ -508,7 +508,7 @@ class gobject_commandscript : public CommandScript
}

//set phasemask for selected object
static bool HandleGameObjectSetPhaseCommand(ChatHandler* handler, char const* args)
static bool HandleGameObjectSetPhaseCommand(ChatHandler* /*handler*/, char const* /*args*/)
{
/*// number or [name] Shift-click form |color|Hgameobject:go_id|h[name]|h|r
char* id = handler->extractKeyFromLink((char*)args, "Hgameobject");
Expand Down

0 comments on commit d15db5f

Please sign in to comment.