aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorBootz <Stage6Dev@EMPulseGaming.com>2011-10-07 11:08:09 -0500
committerBootz <Stage6Dev@EMPulseGaming.com>2011-10-07 11:08:09 -0500
commit81c0a3a8479fef8ea52e1af19174bd777a5759e3 (patch)
tree048c3d98dd7f758ab022c3445b310cd256105997 /src/server/game/Spells/SpellEffects.cpp
parent96d7a1e9704d8bdf55e2197ce26adbefb0a84e61 (diff)
REPO: code-style clean-up
* Fixed pPlayer->player * Fixed pCreature->creature ~DevNote: codestyle for Player should be (*player), not *plr or *p... same goes for Creatures (*creature)... more cleaning needed. We've way too many codestyles happening here.
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rwxr-xr-xsrc/server/game/Spells/SpellEffects.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 776ff482b3a..ee4b771f6fe 100755
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -6287,7 +6287,7 @@ void Spell::EffectQuestClear(SpellEffIndex effIndex)
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
- Player* pPlayer = unitTarget->ToPlayer();
+ Player* player = unitTarget->ToPlayer();
uint32 quest_id = m_spellInfo->Effects[effIndex].MiscValue;
@@ -6297,24 +6297,24 @@ void Spell::EffectQuestClear(SpellEffIndex effIndex)
return;
// Player has never done this quest
- if (pPlayer->GetQuestStatus(quest_id) == QUEST_STATUS_NONE)
+ if (player->GetQuestStatus(quest_id) == QUEST_STATUS_NONE)
return;
// remove all quest entries for 'entry' from quest log
for (uint8 slot = 0; slot < MAX_QUEST_LOG_SIZE; ++slot)
{
- uint32 quest = pPlayer->GetQuestSlotQuestId(slot);
+ uint32 quest = player->GetQuestSlotQuestId(slot);
if (quest == quest_id)
{
- pPlayer->SetQuestSlot(slot, 0);
+ player->SetQuestSlot(slot, 0);
// we ignore unequippable quest items in this case, its' still be equipped
- pPlayer->TakeQuestSourceItem(quest, false);
+ player->TakeQuestSourceItem(quest, false);
}
}
- pPlayer->RemoveActiveQuest(quest_id);
- pPlayer->RemoveRewardedQuest(quest_id);
+ player->RemoveActiveQuest(quest_id);
+ player->RemoveRewardedQuest(quest_id);
}
void Spell::EffectSendTaxi(SpellEffIndex effIndex)