Core: Minor code style corrections
This commit is contained in:
@@ -441,7 +441,7 @@ uint32 Condition::GetSearcherTypeMaskForCondition()
|
||||
uint32 Condition::GetMaxAvailableConditionTargets()
|
||||
{
|
||||
// returns number of targets which are available for given source type
|
||||
switch(SourceType)
|
||||
switch (SourceType)
|
||||
{
|
||||
case CONDITION_SOURCE_TYPE_SPELL:
|
||||
case CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET:
|
||||
|
||||
@@ -161,7 +161,7 @@ void WorldSession::HandleAuctionSellItem(WorldPacket & recv_data)
|
||||
|
||||
etime *= MINUTE;
|
||||
|
||||
switch(etime)
|
||||
switch (etime)
|
||||
{
|
||||
case 1*MIN_AUCTION_TIME:
|
||||
case 2*MIN_AUCTION_TIME:
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace Movement
|
||||
data << move_spline.spline.getPoint(move_spline.spline.first());
|
||||
data << move_spline.GetId();
|
||||
|
||||
switch(splineflags & MoveSplineFlag::Mask_Final_Facing)
|
||||
switch (splineflags & MoveSplineFlag::Mask_Final_Facing)
|
||||
{
|
||||
case MoveSplineFlag::Final_Target:
|
||||
data << uint8(MonsterMoveFacingTarget);
|
||||
|
||||
@@ -5083,7 +5083,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
|
||||
break;
|
||||
case SPELLFAMILY_ROGUE:
|
||||
// Tricks of the trade
|
||||
switch(GetId())
|
||||
switch (GetId())
|
||||
{
|
||||
case 59628: //Tricks of the trade buff on rogue (6sec duration)
|
||||
target->SetReducedThreatPercent(0,0);
|
||||
|
||||
@@ -827,7 +827,7 @@ void Spell::SelectEffectImplicitTargets(SpellEffIndex effIndex, SpellImplicitTar
|
||||
break;
|
||||
}
|
||||
|
||||
switch(targetType.GetSelectionCategory())
|
||||
switch (targetType.GetSelectionCategory())
|
||||
{
|
||||
case TARGET_SELECT_CATEGORY_CHANNEL:
|
||||
SelectImplicitChannelTargets(effIndex, targetType);
|
||||
@@ -845,7 +845,7 @@ void Spell::SelectEffectImplicitTargets(SpellEffIndex effIndex, SpellImplicitTar
|
||||
switch (targetType.GetObjectType())
|
||||
{
|
||||
case TARGET_OBJECT_TYPE_SRC:
|
||||
switch(targetType.GetReferenceType())
|
||||
switch (targetType.GetReferenceType())
|
||||
{
|
||||
case TARGET_REFERENCE_TYPE_CASTER:
|
||||
m_targets.SetSrc(*m_caster);
|
||||
@@ -856,7 +856,7 @@ void Spell::SelectEffectImplicitTargets(SpellEffIndex effIndex, SpellImplicitTar
|
||||
}
|
||||
break;
|
||||
case TARGET_OBJECT_TYPE_DEST:
|
||||
switch(targetType.GetReferenceType())
|
||||
switch (targetType.GetReferenceType())
|
||||
{
|
||||
case TARGET_REFERENCE_TYPE_CASTER:
|
||||
SelectImplicitCasterDestTargets(effIndex, targetType);
|
||||
@@ -873,7 +873,7 @@ void Spell::SelectEffectImplicitTargets(SpellEffIndex effIndex, SpellImplicitTar
|
||||
}
|
||||
break;
|
||||
default:
|
||||
switch(targetType.GetReferenceType())
|
||||
switch (targetType.GetReferenceType())
|
||||
{
|
||||
case TARGET_REFERENCE_TYPE_CASTER:
|
||||
SelectImplicitCasterObjectTargets(effIndex, targetType);
|
||||
@@ -1367,7 +1367,7 @@ void Spell::SelectImplicitAreaTargets(SpellEffIndex effIndex, SpellImplicitTarge
|
||||
|
||||
void Spell::SelectImplicitCasterDestTargets(SpellEffIndex effIndex, SpellImplicitTargetInfo const& targetType)
|
||||
{
|
||||
switch(targetType.GetTarget())
|
||||
switch (targetType.GetTarget())
|
||||
{
|
||||
case TARGET_DEST_CASTER:
|
||||
m_targets.SetDst(*m_caster);
|
||||
@@ -1432,7 +1432,7 @@ void Spell::SelectImplicitCasterDestTargets(SpellEffIndex effIndex, SpellImplici
|
||||
void Spell::SelectImplicitTargetDestTargets(SpellEffIndex effIndex, SpellImplicitTargetInfo const& targetType)
|
||||
{
|
||||
WorldObject* target = m_targets.GetObjectTarget();
|
||||
switch(targetType.GetTarget())
|
||||
switch (targetType.GetTarget())
|
||||
{
|
||||
case TARGET_DEST_TARGET_ENEMY:
|
||||
case TARGET_DEST_TARGET_ANY:
|
||||
@@ -1465,7 +1465,7 @@ void Spell::SelectImplicitDestDestTargets(SpellEffIndex effIndex, SpellImplicitT
|
||||
if (!m_targets.HasDst())
|
||||
m_targets.SetDst(*m_caster);
|
||||
|
||||
switch(targetType.GetTarget())
|
||||
switch (targetType.GetTarget())
|
||||
{
|
||||
case TARGET_DEST_DYNOBJ_ENEMY:
|
||||
case TARGET_DEST_DYNOBJ_ALLY:
|
||||
@@ -1491,7 +1491,7 @@ void Spell::SelectImplicitDestDestTargets(SpellEffIndex effIndex, SpellImplicitT
|
||||
|
||||
void Spell::SelectImplicitCasterObjectTargets(SpellEffIndex effIndex, SpellImplicitTargetInfo const& targetType)
|
||||
{
|
||||
switch(targetType.GetTarget())
|
||||
switch (targetType.GetTarget())
|
||||
{
|
||||
case TARGET_UNIT_CASTER:
|
||||
AddUnitTarget(m_caster, 1 << effIndex, false);
|
||||
|
||||
@@ -224,8 +224,8 @@ bool SpellScript::TargetHook::CheckEffect(SpellInfo const* spellEntry, uint8 eff
|
||||
spellEntry->Effects[effIndex].TargetB.GetTarget() != targetType)
|
||||
return false;
|
||||
|
||||
SpellImplicitTargetInfo targetType(this->targetType);
|
||||
switch (targetType.GetSelectionCategory())
|
||||
SpellImplicitTargetInfo targetInfo(targetType);
|
||||
switch (targetInfo.GetSelectionCategory())
|
||||
{
|
||||
case TARGET_SELECT_CATEGORY_CHANNEL: // SINGLE
|
||||
return !area;
|
||||
@@ -235,13 +235,13 @@ bool SpellScript::TargetHook::CheckEffect(SpellInfo const* spellEntry, uint8 eff
|
||||
case TARGET_SELECT_CATEGORY_AREA: // AREA
|
||||
return area;
|
||||
case TARGET_SELECT_CATEGORY_DEFAULT:
|
||||
switch (targetType.GetObjectType())
|
||||
switch (targetInfo.GetObjectType())
|
||||
{
|
||||
case TARGET_OBJECT_TYPE_SRC: // EMPTY
|
||||
case TARGET_OBJECT_TYPE_DEST: // EMPTY
|
||||
return false;
|
||||
default:
|
||||
switch(targetType.GetReferenceType())
|
||||
switch (targetInfo.GetReferenceType())
|
||||
{
|
||||
case TARGET_REFERENCE_TYPE_CASTER: // SINGLE
|
||||
return !area;
|
||||
|
||||
@@ -211,7 +211,7 @@ void WorldSession::HandleWardenDataOpcode(WorldPacket& recvData)
|
||||
sLog->outDebug(LOG_FILTER_WARDEN, "Got packet, opcode %02X, size %u", opcode, uint32(recvData.size()));
|
||||
recvData.hexlike();
|
||||
|
||||
switch(opcode)
|
||||
switch (opcode)
|
||||
{
|
||||
case WARDEN_CMSG_MODULE_MISSING:
|
||||
_warden->SendModuleToClient();
|
||||
|
||||
@@ -121,7 +121,7 @@ void WardenCheckMgr::LoadWardenChecks()
|
||||
|
||||
if (checkType == MPQ_CHECK || checkType == MEM_CHECK)
|
||||
{
|
||||
WardenCheckResult *wr = new WardenCheckResult();
|
||||
WardenCheckResult* wr = new WardenCheckResult();
|
||||
wr->Result.SetHexStr(checkResult.c_str());
|
||||
int len = checkResult.size() / 2;
|
||||
if (wr->Result.GetNumBytes() < len)
|
||||
|
||||
@@ -43,8 +43,8 @@ void WardenMac::Init(WorldSession *pClient, BigNumber *K)
|
||||
_session = pClient;
|
||||
// Generate Warden Key
|
||||
SHA1Randx WK(K->AsByteArray(), K->GetNumBytes());
|
||||
WK.generate(_inputKey, 16);
|
||||
WK.generate(_outputKey, 16);
|
||||
WK.Generate(_inputKey, 16);
|
||||
WK.Generate(_outputKey, 16);
|
||||
/*
|
||||
Seed: 4D808D2C77D905C41A6380EC08586AFE (0x05 packet)
|
||||
Hash: <?> (0x04 packet)
|
||||
|
||||
@@ -47,8 +47,8 @@ void WardenWin::Init(WorldSession* session, BigNumber *k)
|
||||
_session = session;
|
||||
// Generate Warden Key
|
||||
SHA1Randx WK(k->AsByteArray(), k->GetNumBytes());
|
||||
WK.generate(_inputKey, 16);
|
||||
WK.generate(_outputKey, 16);
|
||||
WK.Generate(_inputKey, 16);
|
||||
WK.Generate(_outputKey, 16);
|
||||
|
||||
memcpy(_seed, Module.Seed, 16);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user