aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/EventAI
diff options
context:
space:
mode:
authorSubv <s.v.h21@hotmail.com>2012-02-14 12:46:26 -0500
committerSubv <s.v.h21@hotmail.com>2012-02-14 12:46:26 -0500
commit8a72aede1641ae19d539ed807e3bb0458c7a65e8 (patch)
tree19244d00341860f4f7f872af68763b9eaf2e0331 /src/server/game/AI/EventAI
parentf1182f0884e6d1eb5a279550d1b92d02cddb7c56 (diff)
Codestyle: Renamed some variables to fit codestyle, corrected order in structure/class fields to match alignment (they use slightly less memory now)
Signed-off-by: Subv <s.v.h21@hotmail.com>
Diffstat (limited to 'src/server/game/AI/EventAI')
-rwxr-xr-xsrc/server/game/AI/EventAI/CreatureEventAI.cpp6
-rwxr-xr-xsrc/server/game/AI/EventAI/CreatureEventAIMgr.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/AI/EventAI/CreatureEventAI.cpp b/src/server/game/AI/EventAI/CreatureEventAI.cpp
index 9036448d9b4..730606becb5 100755
--- a/src/server/game/AI/EventAI/CreatureEventAI.cpp
+++ b/src/server/game/AI/EventAI/CreatureEventAI.cpp
@@ -1334,9 +1334,9 @@ void CreatureEventAI::ReceiveEmote(Player* player, uint32 textEmote)
return;
Condition cond;
- cond.mConditionType = ConditionType((*itr).Event.receive_emote.condition);
- cond.mConditionValue1 = (*itr).Event.receive_emote.conditionValue1;
- cond.mConditionValue2 = (*itr).Event.receive_emote.conditionValue2;
+ cond.ConditionType = ConditionTypes((*itr).Event.receive_emote.condition);
+ cond.ConditionValue1 = (*itr).Event.receive_emote.conditionValue1;
+ cond.ConditionValue2 = (*itr).Event.receive_emote.conditionValue2;
ConditionSourceInfo srcInfo = ConditionSourceInfo(player);
if (cond.Meets(srcInfo))
diff --git a/src/server/game/AI/EventAI/CreatureEventAIMgr.cpp b/src/server/game/AI/EventAI/CreatureEventAIMgr.cpp
index 8f2cf6b471f..add7b4db174 100755
--- a/src/server/game/AI/EventAI/CreatureEventAIMgr.cpp
+++ b/src/server/game/AI/EventAI/CreatureEventAIMgr.cpp
@@ -359,9 +359,9 @@ void CreatureEventAIMgr::LoadCreatureEventAI_Scripts()
if (temp.receive_emote.condition)
{
Condition cond;
- cond.mConditionType = ConditionType(temp.receive_emote.condition);
- cond.mConditionValue1 = temp.receive_emote.conditionValue1;
- cond.mConditionValue2 = temp.receive_emote.conditionValue2;
+ cond.ConditionType = ConditionTypes(temp.receive_emote.condition);
+ cond.ConditionValue1 = temp.receive_emote.conditionValue1;
+ cond.ConditionValue2 = temp.receive_emote.conditionValue2;
if (!sConditionMgr->isConditionTypeValid(&cond))
{
sLog->outErrorDb("CreatureEventAI: Creature %u using event %u: param2 (Condition: %u) are not valid.", temp.creature_id, i, temp.receive_emote.condition);