Warning Fixes

Code Style cleanup
Fix linux compile

--HG--
branch : trunk
This commit is contained in:
Spp
2010-04-29 23:12:16 +02:00
parent 35af94d4b5
commit cb0cb96283
17 changed files with 44 additions and 38 deletions

View File

@@ -99,7 +99,7 @@ static float afSpawnLocations[2][3]=
struct boss_onyxiaAI : public ScriptedAI
{
boss_onyxiaAI(Creature* pCreature) : ScriptedAI(pCreature)
boss_onyxiaAI(Creature* pCreature) : ScriptedAI(pCreature)
{
instance = me->GetInstanceData();
}

View File

@@ -231,7 +231,7 @@ struct boss_tharon_jaAI : public ScriptedAI
{
// clean morph on players
Map::PlayerList const &PlayerList = pInstance->instance->GetPlayers();
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
if (Player *pPlayer = i->getSource())
pPlayer->DeMorph();

View File

@@ -53,7 +53,7 @@ enum Yells
enum
{
// Con-speed-atory timed achievement.
// Con-speed-atory timed achievement.
// TODO Should be started when 1st trash is killed.
ACHIEV_CON_SPEED_ATORY_START_EVENT = 21597,
SPELL_ACHIEVEMENT_CHECK = 65074,

View File

@@ -198,7 +198,7 @@ bool AreaTrigger_at_last_rites(Player* pPlayer, const AreaTriggerEntry* pAt)
WorldLocation pPosition;
switch(pAt->id)
{
{
case 5332:
case 5338:
pPosition = WorldLocation(571,3733.68,3563.25,290.812,3.665192);

View File

@@ -2185,7 +2185,7 @@ bool GossipHello_npc_locksmith(Player* pPlayer, Creature* pCreature)
return true;
}
bool GossipSelect_npc_locksmith(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
bool GossipSelect_npc_locksmith(Player* pPlayer, Creature* /*pCreature*/, uint32 /*uiSender*/, uint32 uiAction)
{
switch(uiAction)
{