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 <[email protected]>
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -2783,10 +2783,10 @@ bool SmartScript::ConditionValid(Unit* u, int32 c, int32 v1, int32 v2, int32 v3)
|
||||
if (c == 0) return true;
|
||||
if (!u || !u->ToPlayer()) return false;
|
||||
Condition cond;
|
||||
cond.mConditionType = ConditionType(uint32(c));
|
||||
cond.mConditionValue1 = uint32(v1);
|
||||
cond.mConditionValue1 = uint32(v2);
|
||||
cond.mConditionValue1 = uint32(v3);
|
||||
cond.ConditionType = ConditionTypes(uint32(c));
|
||||
cond.ConditionValue1 = uint32(v1);
|
||||
cond.ConditionValue1 = uint32(v2);
|
||||
cond.ConditionValue1 = uint32(v3);
|
||||
ConditionSourceInfo srcInfo = ConditionSourceInfo(u->ToPlayer());
|
||||
return cond.Meets(srcInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user