aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2012-12-31 20:43:14 +0100
committerShauren <shauren.trinity@gmail.com>2012-12-31 20:43:14 +0100
commitf1170ba0fb00c32d55bc7db0c0a2bae2aef2ec82 (patch)
tree30449c7ad27c0c4c064adbf91404964ccba2eed5 /src/server/scripts
parentb229f72bf44e5d4a8abb02efe454348670122271 (diff)
Core: Fixed some level 4 warnings (msvc)
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Events/childrens_week.cpp46
-rw-r--r--src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp2
2 files changed, 28 insertions, 20 deletions
diff --git a/src/server/scripts/Events/childrens_week.cpp b/src/server/scripts/Events/childrens_week.cpp
index 28d033f9d48..04c82d4d34a 100644
--- a/src/server/scripts/Events/childrens_week.cpp
+++ b/src/server/scripts/Events/childrens_week.cpp
@@ -150,7 +150,7 @@ class npc_winterfin_playmate : public CreatureScript
struct npc_winterfin_playmateAI : public ScriptedAI
{
- npc_winterfin_playmateAI(Creature* creature) : ScriptedAI (creature) {}
+ npc_winterfin_playmateAI(Creature* creature) : ScriptedAI(creature) {}
void Reset()
{
@@ -167,7 +167,8 @@ class npc_winterfin_playmate : public CreatureScript
if (player->GetQuestStatus(QUEST_PLAYMATE_ORACLE) == QUEST_STATUS_INCOMPLETE)
{
playerGUID = player->GetGUID();
- if ((orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE)))
+ orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE);
+ if (orphanGUID)
phase = 1;
}
}
@@ -247,7 +248,7 @@ class npc_snowfall_glade_playmate : public CreatureScript
struct npc_snowfall_glade_playmateAI : public ScriptedAI
{
- npc_snowfall_glade_playmateAI(Creature* creature) : ScriptedAI (creature) {}
+ npc_snowfall_glade_playmateAI(Creature* creature) : ScriptedAI(creature) {}
void Reset()
{
@@ -264,7 +265,8 @@ class npc_snowfall_glade_playmate : public CreatureScript
if (player->GetQuestStatus(QUEST_PLAYMATE_WOLVAR) == QUEST_STATUS_INCOMPLETE)
{
playerGUID = player->GetGUID();
- if ((orphanGUID = getOrphanGUID(player, ORPHAN_WOLVAR)))
+ orphanGUID = getOrphanGUID(player, ORPHAN_WOLVAR);
+ if (orphanGUID)
phase = 1;
}
}
@@ -343,7 +345,7 @@ class npc_the_biggest_tree : public CreatureScript
struct npc_the_biggest_treeAI : public ScriptedAI
{
- npc_the_biggest_treeAI(Creature* creature) : ScriptedAI (creature)
+ npc_the_biggest_treeAI(Creature* creature) : ScriptedAI(creature)
{
me->SetDisplayId(DISPLAY_INVISIBLE);
}
@@ -363,7 +365,8 @@ class npc_the_biggest_tree : public CreatureScript
if (player->GetQuestStatus(QUEST_THE_BIGGEST_TREE_EVER) == QUEST_STATUS_INCOMPLETE)
{
playerGUID = player->GetGUID();
- if ((orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE)))
+ orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE);
+ if (orphanGUID)
phase = 1;
}
}
@@ -431,7 +434,7 @@ class npc_high_oracle_soo_roo : public CreatureScript
struct npc_high_oracle_soo_rooAI : public ScriptedAI
{
- npc_high_oracle_soo_rooAI(Creature* creature) : ScriptedAI (creature) {}
+ npc_high_oracle_soo_rooAI(Creature* creature) : ScriptedAI(creature) {}
void Reset()
{
@@ -448,7 +451,8 @@ class npc_high_oracle_soo_roo : public CreatureScript
if (player->GetQuestStatus(QUEST_THE_BRONZE_DRAGONSHRINE_ORACLE) == QUEST_STATUS_INCOMPLETE)
{
playerGUID = player->GetGUID();
- if ((orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE)))
+ orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE);
+ if (orphanGUID)
phase = 1;
}
}
@@ -518,7 +522,7 @@ class npc_elder_kekek : public CreatureScript
struct npc_elder_kekekAI : public ScriptedAI
{
- npc_elder_kekekAI(Creature* creature) : ScriptedAI (creature) {}
+ npc_elder_kekekAI(Creature* creature) : ScriptedAI(creature) {}
void Reset()
{
@@ -535,7 +539,8 @@ class npc_elder_kekek : public CreatureScript
if (player->GetQuestStatus(QUEST_THE_BRONZE_DRAGONSHRINE_WOLVAR) == QUEST_STATUS_INCOMPLETE)
{
playerGUID = player->GetGUID();
- if ((orphanGUID = getOrphanGUID(player, ORPHAN_WOLVAR)))
+ orphanGUID = getOrphanGUID(player, ORPHAN_WOLVAR);
+ if (orphanGUID)
phase = 1;
}
}
@@ -605,7 +610,7 @@ class npc_the_etymidian : public CreatureScript
struct npc_the_etymidianAI : public ScriptedAI
{
- npc_the_etymidianAI(Creature* creature) : ScriptedAI (creature) {}
+ npc_the_etymidianAI(Creature* creature) : ScriptedAI(creature) {}
void Reset()
{
@@ -622,7 +627,8 @@ class npc_the_etymidian : public CreatureScript
if (player->GetQuestStatus(QUEST_MEETING_A_GREAT_ONE) == QUEST_STATUS_INCOMPLETE)
{
playerGUID = player->GetGUID();
- if ((orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE)))
+ orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE);
+ if (orphanGUID)
phase = 1;
}
}
@@ -700,7 +706,7 @@ class npc_alexstraza_the_lifebinder : public CreatureScript
struct npc_alexstraza_the_lifebinderAI : public ScriptedAI
{
- npc_alexstraza_the_lifebinderAI(Creature* creature) : ScriptedAI (creature) {}
+ npc_alexstraza_the_lifebinderAI(Creature* creature) : ScriptedAI(creature) {}
void Reset()
{
@@ -734,15 +740,17 @@ class npc_alexstraza_the_lifebinder : public CreatureScript
{
if (player->GetQuestStatus(QUEST_THE_DRAGON_QUEEN_ORACLE) == QUEST_STATUS_INCOMPLETE)
{
- if ((orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE)))
+ playerGUID = player->GetGUID();
+ orphanGUID = getOrphanGUID(player, ORPHAN_ORACLE);
+ if (orphanGUID)
phase = 1;
- playerGUID = player->GetGUID();
}
else if (player->GetQuestStatus(QUEST_THE_DRAGON_QUEEN_WOLVAR) == QUEST_STATUS_INCOMPLETE)
{
- if ((orphanGUID = getOrphanGUID(player, ORPHAN_WOLVAR)))
+ playerGUID = player->GetGUID();
+ orphanGUID = getOrphanGUID(player, ORPHAN_WOLVAR);
+ if (orphanGUID)
phase = 7;
- playerGUID = player->GetGUID();
}
}
}
@@ -915,7 +923,7 @@ class npc_cw_area_trigger : public CreatureScript
struct npc_cw_area_triggerAI : public ScriptedAI
{
- npc_cw_area_triggerAI(Creature* creature) : ScriptedAI (creature)
+ npc_cw_area_triggerAI(Creature* creature) : ScriptedAI(creature)
{
me->SetDisplayId(DISPLAY_INVISIBLE);
}
@@ -1011,7 +1019,7 @@ class npc_grizzlemaw_cw_trigger : public CreatureScript
struct npc_grizzlemaw_cw_triggerAI : public ScriptedAI
{
- npc_grizzlemaw_cw_triggerAI(Creature* creature) : ScriptedAI (creature)
+ npc_grizzlemaw_cw_triggerAI(Creature* creature) : ScriptedAI(creature)
{
me->SetDisplayId(DISPLAY_INVISIBLE);
}
diff --git a/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp b/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp
index 2bbdaa389ad..50e71955aa2 100644
--- a/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp
+++ b/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp
@@ -199,7 +199,7 @@ class boss_ossirian : public CreatureScript
CrystalCoordinates[CrystalIterator].GetPositionX(),
CrystalCoordinates[CrystalIterator].GetPositionY(),
CrystalCoordinates[CrystalIterator].GetPositionZ(),
- 0, 0, 0, 0, 0, -1))
+ 0, 0, 0, 0, 0, uint32(-1)))
{
CrystalGUID = Crystal->GetGUID();
++CrystalIterator;