aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorclick <click@gonnamakeyou.com>2011-07-02 23:16:45 +0200
committerclick <click@gonnamakeyou.com>2011-07-02 23:16:45 +0200
commit70115f52f7229254af99162f6f5639792a23da49 (patch)
treec6acac7a3cf183fe14eadf82e07cac2ffde6c4c2 /src/server/scripts/World
parent169f5da8c3120da98c01ebd8117f7aa527106206 (diff)
Core: Cleaning up hungarian notation - Phase3: pTarget -> target
Diffstat (limited to 'src/server/scripts/World')
-rwxr-xr-xsrc/server/scripts/World/achievement_scripts.cpp4
-rw-r--r--src/server/scripts/World/go_scripts.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/server/scripts/World/achievement_scripts.cpp b/src/server/scripts/World/achievement_scripts.cpp
index 339d54d5450..2c979f5727c 100755
--- a/src/server/scripts/World/achievement_scripts.cpp
+++ b/src/server/scripts/World/achievement_scripts.cpp
@@ -89,13 +89,13 @@ class achievement_save_the_day : public AchievementCriteriaScript
if (!target)
return false;
- if (Player const* pTarget = target->ToPlayer())
+ if (Player const* target = target->ToPlayer())
{
if (source->GetBattlegroundTypeId() != BATTLEGROUND_WS || !source->GetBattleground())
return false;
BattlegroundWS* pWSG = static_cast<BattlegroundWS*>(source->GetBattleground());
- if (pWSG->GetFlagState(pTarget->GetTeam()) == BG_WS_FLAG_STATE_ON_BASE)
+ if (pWSG->GetFlagState(target->GetTeam()) == BG_WS_FLAG_STATE_ON_BASE)
return true;
}
return false;
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp
index c98288cd976..fba7b44d789 100644
--- a/src/server/scripts/World/go_scripts.cpp
+++ b/src/server/scripts/World/go_scripts.cpp
@@ -1130,11 +1130,11 @@ public:
if (uiAction == GOSSIP_ACTION_INFO_DEF +1)
{
player->CLOSE_GOSSIP_MENU();
- Creature* pTarget = GetClosestCreatureWithEntry(player, NPC_OUTHOUSE_BUNNY, 3.0f);
- if (pTarget)
+ Creature* target = GetClosestCreatureWithEntry(player, NPC_OUTHOUSE_BUNNY, 3.0f);
+ if (target)
{
- pTarget->AI()->SetData(1, player->getGender());
- pGO->CastSpell(pTarget, SPELL_INDISPOSED_III);
+ target->AI()->SetData(1, player->getGender());
+ pGO->CastSpell(target, SPELL_INDISPOSED_III);
}
pGO->CastSpell(player, SPELL_INDISPOSED);
if (player->HasItemCount(ITEM_ANDERHOLS_SLIDER_CIDER, 1))