Core: More warning fixes

This commit is contained in:
Shauren
2011-05-07 20:09:45 +02:00
parent 7905200eba
commit 551889c42f
16 changed files with 68 additions and 73 deletions
@@ -1215,7 +1215,7 @@ class npc_crate_helper : public CreatureScript
_marked = false;
}
void SpellHit(Unit* caster, SpellEntry const* spell)
void SpellHit(Unit* /*caster*/, SpellEntry const* spell)
{
if (spell->Id == SPELL_ARCANE_DISRUPTION && !_marked)
{
@@ -173,8 +173,8 @@ public:
{
go->SetGoState(GO_STATE_ACTIVE);
stillpine->GetMotionMaster()->MovePoint(1, go->GetPositionX(), go->GetPositionY()-15, go->GetPositionZ());
player->CastedCreatureOrGO(NPC_PRINCESS_STILLPINE, 0, SPELL_OPENING_PRINCESS_STILLPINE_CREDIT);
}
player->CastedCreatureOrGO(NPC_PRINCESS_STILLPINE, 0, SPELL_OPENING_PRINCESS_STILLPINE_CREDIT);
}
return true;
}
};
@@ -190,11 +190,10 @@ public:
void MovementInform(uint32 type, uint32 id)
{
if (id == 1)
if (type == POINT_MOTION_TYPE && id == 1)
{
DoScriptText(SAY_DIRECTION, me);
DoScriptText(SAY_DIRECTION, me);
me->ForcedDespawn();
return;
}
}
};