mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 23:50:44 +01:00
Core: Fix more warnings
--HG-- branch : trunk
This commit is contained in:
@@ -271,7 +271,7 @@ class example_creature : public CreatureScript
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action)
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
|
||||
{
|
||||
if (action == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
|
||||
@@ -197,7 +197,7 @@ class example_escort : public CreatureScript
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action)
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
|
||||
{
|
||||
npc_escortAI* pEscortAI = CAST_AI(example_escort::example_escortAI, creature->AI());
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class example_gossip_codebox : public CreatureScript
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action)
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
|
||||
{
|
||||
if (action == GOSSIP_ACTION_INFO_DEF+2)
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ class AT_example_areatrigger : public AreaTriggerScript
|
||||
{
|
||||
}
|
||||
|
||||
bool OnTrigger(Player* player, AreaTriggerEntry const* trigger)
|
||||
bool OnTrigger(Player* player, AreaTriggerEntry const* /*trigger*/)
|
||||
{
|
||||
DoScriptText(SAY_HI, player);
|
||||
return true;
|
||||
@@ -56,7 +56,7 @@ class ItemUse_example_item : public ItemScript
|
||||
{
|
||||
}
|
||||
|
||||
bool OnUse(Player* player, Item* item, SpellCastTargets const& targets)
|
||||
bool OnUse(Player* /*player*/, Item* /*item*/, SpellCastTargets const& /*targets*/)
|
||||
{
|
||||
sScriptMgr.LoadDatabase();
|
||||
return true;
|
||||
@@ -72,7 +72,7 @@ class GOHello_example_go_teleporter : public GameObjectScript
|
||||
{
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* player, GameObject* go)
|
||||
bool OnGossipHello(Player* player, GameObject* /*go*/)
|
||||
{
|
||||
player->TeleportTo(0, 1807.07f, 336.105f, 70.3975f, 0.0f);
|
||||
return false;
|
||||
|
||||
@@ -35,11 +35,10 @@ class spell_ex_49375 : public SpellHandlerScript
|
||||
char * localVariable2;
|
||||
|
||||
// effect handler hook - effIndex - effIndex of handled effect of a spell
|
||||
void HandleDummy(SpellEffIndex effIndex)
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
// we're handling SPELL_EFFECT_DUMMY in effIndex 0 here
|
||||
sLog.outError("WE ARE HANDLING DUMMY!");
|
||||
sLog.outError(localVariable.c_str());
|
||||
// make caster cast a spell on a unit target of effect
|
||||
if (Unit * target = GetHitUnit())
|
||||
GetCaster()->CastSpell(target, 70522, true);
|
||||
@@ -81,7 +80,7 @@ class spell_ex_49375 : public SpellHandlerScript
|
||||
|
||||
// function called on server startup
|
||||
// checks if script has data required for it to work
|
||||
bool Validate(SpellEntry const * spellEntry)
|
||||
bool Validate(SpellEntry const * /*spellEntry*/)
|
||||
{
|
||||
// check if spellid 1 exists in dbc
|
||||
if (!sSpellStore.LookupEntry(70522))
|
||||
@@ -149,4 +148,4 @@ void AddSC_example_spell_scripts()
|
||||
/* Commented out to prevent loading errors
|
||||
new spell_ex_49375;
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user