Core: Fix more warnings
--HG-- branch : trunk
This commit is contained in:
@@ -525,7 +525,7 @@ void hyjalAI::SummonCreature(uint32 entry, float Base[4][3])
|
||||
}
|
||||
}
|
||||
|
||||
void hyjalAI::SummonNextWave(Wave wave[18], uint32 Count, float Base[4][3])
|
||||
void hyjalAI::SummonNextWave(const Wave wave[18], uint32 Count, float Base[4][3])
|
||||
{
|
||||
// 1 in 4 chance we give a rally yell. Not sure if the chance is offilike.
|
||||
if (rand()%4 == 0)
|
||||
|
||||
@@ -67,7 +67,7 @@ struct Wave
|
||||
bool IsBoss; // Simply used to inform the wave summoner that the next wave contains a boss to halt all waves after that
|
||||
};
|
||||
|
||||
static Wave AllianceWaves[]= // Waves that will be summoned in the Alliance Base
|
||||
const Wave AllianceWaves[]= // Waves that will be summoned in the Alliance Base
|
||||
{ // Rage Winterchill Wave 1-8
|
||||
{{GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, 0, 0, 0, 0, 0, 0, 0, 0}, 120000, false},
|
||||
{{GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, 0, 0, 0, 0, 0, 0}, 120000, false},
|
||||
@@ -92,7 +92,7 @@ static Wave AllianceWaves[]= // Waves that will b
|
||||
{{ANETHERON, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 0, true}
|
||||
};
|
||||
|
||||
static Wave HordeWaves[]= // Waves that are summoned in the Horde base
|
||||
const Wave HordeWaves[]= // Waves that are summoned in the Horde base
|
||||
{ // Kaz'Rogal Wave 1-8
|
||||
{{GHOUL, GHOUL, GHOUL, GHOUL, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, BANSHEE, BANSHEE, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 0, 0}, 180000, false},
|
||||
{{GHOUL, GHOUL, GHOUL, GHOUL, GARGOYLE, GARGOYLE, GARGOYLE, GARGOYLE, GARGOYLE, GARGOYLE, GARGOYLE, GARGOYLE, GARGOYLE, GARGOYLE, 0, 0, 0, 0}, 180000, false},
|
||||
@@ -141,7 +141,7 @@ enum YellId
|
||||
DEATH = 6, // Used on death
|
||||
};
|
||||
|
||||
static Yells JainaQuotes[]=
|
||||
const Yells JainaQuotes[]=
|
||||
{
|
||||
{ATTACKED, -1534000},
|
||||
{ATTACKED, -1534001},
|
||||
@@ -154,7 +154,7 @@ static Yells JainaQuotes[]=
|
||||
{DEATH, -1534008},
|
||||
};
|
||||
|
||||
static Yells ThrallQuotes[]=
|
||||
const Yells ThrallQuotes[]=
|
||||
{
|
||||
{ATTACKED, -1534009},
|
||||
{ATTACKED, -1534010},
|
||||
@@ -201,7 +201,7 @@ struct hyjalAI : public npc_escortAI
|
||||
void SummonCreature(uint32 entry, float Base[4][3]); // Summons a creature for that wave in that base
|
||||
|
||||
// Summons the next wave, calls SummonCreature
|
||||
void SummonNextWave(Wave wave[18], uint32 Count, float Base[4][3]);
|
||||
void SummonNextWave(const Wave wave[18], uint32 Count, float Base[4][3]);
|
||||
|
||||
void StartEvent(Player* player); // Begins the event by gossip click
|
||||
|
||||
|
||||
@@ -245,9 +245,9 @@ struct Wave
|
||||
|
||||
static Wave PortalWaves[]=
|
||||
{
|
||||
{C_ASSAS, C_WHELP, C_CHRON, 0},
|
||||
{C_EXECU, C_CHRON, C_WHELP, C_ASSAS},
|
||||
{C_EXECU, C_VANQU, C_CHRON, C_ASSAS}
|
||||
{ {C_ASSAS, C_WHELP, C_CHRON, 0} },
|
||||
{ {C_EXECU, C_CHRON, C_WHELP, C_ASSAS} },
|
||||
{ {C_EXECU, C_VANQU, C_CHRON, C_ASSAS} }
|
||||
};
|
||||
|
||||
class npc_time_rift : public CreatureScript
|
||||
|
||||
Reference in New Issue
Block a user