aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/westfall.cpp
diff options
context:
space:
mode:
authorGyx <2359980687@qq.com>2012-03-29 15:44:24 +0800
committerGyx <2359980687@qq.com>2012-03-29 15:44:24 +0800
commit391d68be20d883a976c75a0b0833d616b178e025 (patch)
treed9fae98700a2bd5d32f74cdb36a4890359d4599e /src/server/scripts/EasternKingdoms/westfall.cpp
parent5b7493fc6676aa1f5ae762b9b0d5d12a01a30e14 (diff)
Core/Script: Code style.
WaypointReached(uint32 i) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 uiPointId) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 /*point*/) -> WaypointReached(uint32 /*waypointId*/) WaypointReached(uint32 uiI) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 /*i*/) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 uiWPointId) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 /*wp*/) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 /*point*/) -> WaypointReached(uint32 waypointId) Signed-off-by: Gyx <2359980687@qq.com>
Diffstat (limited to 'src/server/scripts/EasternKingdoms/westfall.cpp')
-rw-r--r--src/server/scripts/EasternKingdoms/westfall.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/server/scripts/EasternKingdoms/westfall.cpp b/src/server/scripts/EasternKingdoms/westfall.cpp
index c8d2afc3375..46f1526c5bf 100644
--- a/src/server/scripts/EasternKingdoms/westfall.cpp
+++ b/src/server/scripts/EasternKingdoms/westfall.cpp
@@ -85,9 +85,15 @@ public:
{
switch (uiWPHolder)
{
- case 7: DoScriptText(SAY_DS_DOWN_1, me); break;
- case 8: DoScriptText(SAY_DS_DOWN_2, me); break;
- case 9: DoScriptText(SAY_DS_DOWN_3, me); break;
+ case 7:
+ DoScriptText(SAY_DS_DOWN_1, me);
+ break;
+ case 8:
+ DoScriptText(SAY_DS_DOWN_2, me);
+ break;
+ case 9:
+ DoScriptText(SAY_DS_DOWN_3, me);
+ break;
}
}
else
@@ -96,16 +102,15 @@ public:
uiShootTimer = 0;
}
- void WaypointReached(uint32 uiPoint)
+ void WaypointReached(uint32 waypointId)
{
Player* player = GetPlayerForEscort();
-
if (!player)
return;
- uiWPHolder = uiPoint;
+ uiWPHolder = waypointId;
- switch (uiPoint)
+ switch (waypointId)
{
case 4:
SetEquipmentSlots(false, EQUIP_NO_CHANGE, EQUIP_NO_CHANGE, EQUIP_ID_RIFLE);
@@ -226,14 +231,13 @@ public:
{
npc_defias_traitorAI(Creature* creature) : npc_escortAI(creature) { Reset(); }
- void WaypointReached(uint32 i)
+ void WaypointReached(uint32 waypointId)
{
Player* player = GetPlayerForEscort();
-
if (!player)
return;
- switch (i)
+ switch (waypointId)
{
case 35:
SetRun(false);