Core: Remove some whitespace and tabs
This commit is contained in:
@@ -1294,7 +1294,7 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
switch (spellInfo->Effects[i].TargetB.GetSelectionCategory())
|
||||
{
|
||||
case TARGET_SELECT_CATEGORY_NEARBY:
|
||||
|
||||
@@ -89,10 +89,10 @@ enum ConditionTypes
|
||||
The following steps only apply if your condition can be grouped:
|
||||
|
||||
Step 6: Determine how you are going to store your conditions. You need to add a new storage container
|
||||
for it in ConditionMgr class, along with a function like:
|
||||
for it in ConditionMgr class, along with a function like:
|
||||
ConditionList GetConditionsForXXXYourNewSourceTypeXXX(parameters...)
|
||||
|
||||
The above function should be placed in upper level (practical) code that actually
|
||||
The above function should be placed in upper level (practical) code that actually
|
||||
checks the conditions.
|
||||
|
||||
Step 7: Implement loading for your source type in ConditionMgr::LoadConditions.
|
||||
|
||||
@@ -207,7 +207,7 @@ void WorldSession::HandleCalendarGuildFilter(WorldPacket& recvData)
|
||||
void WorldSession::HandleCalendarArenaTeam(WorldPacket& recvData)
|
||||
{
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "CMSG_CALENDAR_ARENA_TEAM [" UI64FMTD "]", _player->GetGUID());
|
||||
|
||||
|
||||
int32 unk1;
|
||||
recvData >> unk1;
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ void TargetedMovementGeneratorMedium<T,D>::_setTargetLocation(T &owner)
|
||||
float x, y, z;
|
||||
//! Following block of code deleted by MrSmite in issue 4891
|
||||
//! Code kept for learning and diagnostical purposes
|
||||
//
|
||||
//
|
||||
// if (i_offset && i_target->IsWithinDistInMap(&owner,2*i_offset))
|
||||
// {
|
||||
// if (!owner.movespline->Finalized())
|
||||
// return;
|
||||
//
|
||||
//
|
||||
// owner.GetPosition(x, y, z);
|
||||
// }
|
||||
// else
|
||||
|
||||
@@ -6444,7 +6444,7 @@ void Spell::UpdatePointers()
|
||||
SpellDestination& dest = m_destTargets[effIndex];
|
||||
if (!dest._transportGUID)
|
||||
continue;
|
||||
|
||||
|
||||
if (!transport || transport->GetGUID() != dest._transportGUID)
|
||||
transport = ObjectAccessor::GetWorldObject(*m_caster, dest._transportGUID);
|
||||
|
||||
|
||||
@@ -1303,10 +1303,10 @@ public:
|
||||
return false;
|
||||
|
||||
char* mask2 = strtok(NULL, " \n");
|
||||
|
||||
|
||||
uint32 moveFlags = (uint32)atoi(mask1);
|
||||
target->SetUnitMovementFlags(moveFlags);
|
||||
|
||||
|
||||
if (mask2)
|
||||
{
|
||||
uint32 moveFlagsExtra = uint32(atoi(mask2));
|
||||
@@ -1316,7 +1316,7 @@ public:
|
||||
target->SendMovementFlagUpdate();
|
||||
handler->PSendSysMessage(LANG_MOVEFLAGS_SET, target->GetUnitMovementFlags(), target->GetExtraUnitMovementFlags());
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -241,7 +241,7 @@ public:
|
||||
_cannotMove = true;
|
||||
|
||||
me->SetFlying(true);
|
||||
|
||||
|
||||
if (instance)
|
||||
instance->DoStopTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT);
|
||||
}
|
||||
@@ -362,7 +362,7 @@ public:
|
||||
Talk(SAY_AGGRO_P_ONE);
|
||||
|
||||
DoCast(SPELL_BERSEKER); // periodic aura, first tick in 10 minutes
|
||||
|
||||
|
||||
if (instance)
|
||||
instance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT);
|
||||
}
|
||||
|
||||
@@ -449,7 +449,7 @@ class spell_warl_demonic_circle_summon : public SpellScriptLoader
|
||||
{
|
||||
if (GameObject* circle = GetTarget()->GetGameObject(GetId()))
|
||||
{
|
||||
// Here we check if player is in demonic circle teleport range, if so add
|
||||
// Here we check if player is in demonic circle teleport range, if so add
|
||||
// WARLOCK_DEMONIC_CIRCLE_ALLOW_CAST; allowing him to cast the WARLOCK_DEMONIC_CIRCLE_TELEPORT.
|
||||
// If not in range remove the WARLOCK_DEMONIC_CIRCLE_ALLOW_CAST.
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ ModelInstance::ModelInstance(MPQFile &f,const char* ModelInstName, uint32 mapID,
|
||||
|
||||
uint16 adtId = 0;// not used for models
|
||||
uint32 flags = MOD_M2;
|
||||
if(tileX == 65 && tileY == 65) flags |= MOD_WORLDSPAWN;
|
||||
if(tileX == 65 && tileY == 65) flags |= MOD_WORLDSPAWN;
|
||||
//write mapID, tileX, tileY, Flags, ID, Pos, Rot, Scale, name
|
||||
fwrite(&mapID, sizeof(uint32), 1, pDirfile);
|
||||
fwrite(&tileX, sizeof(uint32), 1, pDirfile);
|
||||
|
||||
@@ -24,14 +24,14 @@ public:
|
||||
void close();
|
||||
|
||||
void GetFileListTo(vector<string>& filelist) {
|
||||
uint32 filenum;
|
||||
if(libmpq__file_number(mpq_a, "(listfile)", &filenum)) return;
|
||||
libmpq__off_t size, transferred;
|
||||
libmpq__file_unpacked_size(mpq_a, filenum, &size);
|
||||
uint32 filenum;
|
||||
if(libmpq__file_number(mpq_a, "(listfile)", &filenum)) return;
|
||||
libmpq__off_t size, transferred;
|
||||
libmpq__file_unpacked_size(mpq_a, filenum, &size);
|
||||
|
||||
char *buffer = new char[size];
|
||||
|
||||
libmpq__file_read(mpq_a, filenum, (unsigned char*)buffer, size, &transferred);
|
||||
libmpq__file_read(mpq_a, filenum, (unsigned char*)buffer, size, &transferred);
|
||||
|
||||
char seps[] = "\n";
|
||||
char *token;
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
|
||||
enum ModelFlags
|
||||
{
|
||||
MOD_M2 = 1,
|
||||
MOD_WORLDSPAWN = 1<<1,
|
||||
MOD_M2 = 1,
|
||||
MOD_WORLDSPAWN = 1<<1,
|
||||
MOD_HAS_BOUND = 1<<2
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user