mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core: meh, remove again whitespace :(
This commit is contained in:
@@ -311,7 +311,7 @@ void WorldSession::HandleArenaTeamRemoveOpcode(WorldPacket& recvData)
|
||||
SendArenaTeamCommandResult(ERR_ARENA_TEAM_QUIT_S, "", "", ERR_ARENA_TEAM_LEADER_LEAVE_S);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Player cannot be removed during fights
|
||||
if (arenaTeam->IsFighting())
|
||||
return;
|
||||
|
||||
@@ -37,7 +37,7 @@ enum Events
|
||||
{
|
||||
EVENT_CALL_OF_GRAVE = 1,
|
||||
EVENT_TERRIFY,
|
||||
EVENT_SOUL_SIPHON
|
||||
EVENT_SOUL_SIPHON
|
||||
};
|
||||
|
||||
class boss_azshir_the_sleepless : public CreatureScript
|
||||
@@ -84,7 +84,7 @@ class boss_azshir_the_sleepless : public CreatureScript
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||
|
||||
@@ -39,7 +39,7 @@ enum Events
|
||||
EVENT_FLAME_SHOCK = 1,
|
||||
EVENT_SHADOW_BOLT,
|
||||
EVENT_FLAME_SPIKE,
|
||||
EVENT_FIRE_NOVA
|
||||
EVENT_FIRE_NOVA
|
||||
};
|
||||
|
||||
class boss_bloodmage_thalnos : public CreatureScript
|
||||
|
||||
@@ -133,7 +133,7 @@ class boss_herod : public CreatureScript
|
||||
{
|
||||
BossAI::UpdateAI(diff);
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
bool _enrage;
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@ enum CreatureIds
|
||||
NPC_MOGRAINE = 3976,
|
||||
NPC_WHITEMANE = 3977,
|
||||
NPC_VORREL = 3981,
|
||||
|
||||
|
||||
NPC_HORSEMAN = 23682,
|
||||
NPC_HEAD = 23775,
|
||||
NPC_PUMPKIN = 23694
|
||||
|
||||
@@ -336,7 +336,7 @@ class spell_mimiron_bomb_bot : public SpellScriptLoader
|
||||
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (GetHitPlayer())
|
||||
if (GetHitPlayer())
|
||||
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
|
||||
if (Creature* mkii = ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(DATA_LEVIATHAN_MK_II)))
|
||||
mkii->AI()->SetData(DATA_SETUP_BOMB, 0);
|
||||
@@ -425,15 +425,15 @@ class spell_mimiron_fire_search : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_mimiron_fire_search() : SpellScriptLoader("spell_mimiron_fire_search") { }
|
||||
|
||||
|
||||
class spell_mimiron_fire_search_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_mimiron_fire_search_SpellScript);
|
||||
|
||||
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_WATER_SPRAY))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -459,7 +459,7 @@ class spell_mimiron_fire_search : public SpellScriptLoader
|
||||
if (_noTarget)
|
||||
GetCaster()->GetMotionMaster()->MoveRandom(15.0f);
|
||||
}
|
||||
|
||||
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
@@ -490,7 +490,7 @@ class spell_mimiron_fire_search : public SpellScriptLoader
|
||||
private:
|
||||
bool _noTarget;
|
||||
};
|
||||
|
||||
|
||||
SpellScript* GetSpellScript() const override
|
||||
{
|
||||
return new spell_mimiron_fire_search_SpellScript();
|
||||
@@ -530,7 +530,7 @@ class spell_mimiron_magnetic_core : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_MAGNETIC_CORE_VISUAL))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -585,7 +585,7 @@ class spell_mimiron_napalm_shell : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_NAPALM_SHELL))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -663,7 +663,7 @@ class spell_mimiron_plasma_blast : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_PLASMA_BLAST))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -701,7 +701,7 @@ class spell_mimiron_proximity_explosion : public SpellScriptLoader
|
||||
PrepareSpellScript(spell_mimiron_proximity_explosion_SpellScript);
|
||||
|
||||
void OnHit(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
{
|
||||
if (GetHitPlayer())
|
||||
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
|
||||
if (Creature* mkII = ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(DATA_LEVIATHAN_MK_II)))
|
||||
@@ -709,7 +709,7 @@ class spell_mimiron_proximity_explosion : public SpellScriptLoader
|
||||
}
|
||||
|
||||
void HandleAura(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
{
|
||||
GetCaster()->RemoveAurasDueToSpell(SPELL_PROXIMITY_MINE_PERIODIC_TRIGGER);
|
||||
}
|
||||
|
||||
@@ -859,7 +859,7 @@ class spell_mimiron_rocket_strike : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SCRIPT_EFFECT_ROCKET_STRIKE))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -907,7 +907,7 @@ class spell_mimiron_rocket_strike_damage : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_NOT_SO_FRIENDLY_FIRE))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -919,7 +919,7 @@ class spell_mimiron_rocket_strike_damage : public SpellScriptLoader
|
||||
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (GetHitPlayer())
|
||||
if (GetHitPlayer())
|
||||
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
|
||||
if (Creature* mkii = ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(DATA_LEVIATHAN_MK_II)))
|
||||
mkii->AI()->SetData(DATA_SETUP_ROCKET, 0);
|
||||
@@ -957,7 +957,7 @@ class spell_mimiron_rocket_strike_target_select : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SUMMON_ROCKET_STRIKE))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1067,7 +1067,7 @@ class spell_mimiron_summon_assault_bot : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SUMMON_ASSAULT_BOT))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1104,7 +1104,7 @@ class spell_mimiron_summon_assault_bot_target : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SUMMON_ASSAULT_BOT_DUMMY))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1176,7 +1176,7 @@ class spell_mimiron_summon_fire_bot_target : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SUMMON_FIRE_BOT_DUMMY))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1202,7 +1202,7 @@ class spell_mimiron_summon_flames_spread : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_mimiron_summon_flames_spread() : SpellScriptLoader("spell_mimiron_summon_flames_spread") { }
|
||||
|
||||
|
||||
class spell_mimiron_summon_flames_spread_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_mimiron_summon_flames_spread_SpellScript);
|
||||
@@ -1224,7 +1224,7 @@ class spell_mimiron_summon_flames_spread : public SpellScriptLoader
|
||||
}
|
||||
|
||||
void OnHit(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
{
|
||||
GetCaster()->SetInFront(GetHitUnit());
|
||||
}
|
||||
|
||||
@@ -1247,7 +1247,7 @@ class spell_mimiron_summon_flames_spread : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SUMMON_FLAMES_SPREAD))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1284,7 +1284,7 @@ class spell_mimiron_summon_frost_bomb_target : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SUMMON_FROST_BOMB))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1335,7 +1335,7 @@ class spell_mimiron_summon_junk_bot : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SUMMON_JUNK_BOT))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1372,7 +1372,7 @@ class spell_mimiron_summon_junk_bot_target : public SpellScriptLoader
|
||||
bool Validate(SpellInfo const* /*spell*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_SUMMON_JUNK_BOT_DUMMY))
|
||||
return false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -820,7 +820,7 @@ class instance_ulduar : public InstanceMapScript
|
||||
break;
|
||||
case DATA_UNBROKEN:
|
||||
Unbroken = data != 0;
|
||||
break;
|
||||
break;
|
||||
case DATA_MIMIRON_ELEVATOR:
|
||||
if (GameObject* gameObject = instance->GetGameObject(MimironElevatorGUID))
|
||||
gameObject->SetGoState((GOState)data);
|
||||
|
||||
@@ -1052,7 +1052,7 @@ void ExtractDBCFiles(int locale, bool basicLocale)
|
||||
{
|
||||
string filename = path;
|
||||
filename += (iter->c_str() + strlen("DBFilesClient\\"));
|
||||
|
||||
|
||||
if(FileExists(filename.c_str()))
|
||||
continue;
|
||||
|
||||
|
||||
@@ -34,13 +34,13 @@ private:
|
||||
ContinentBuilder* cBuilder;
|
||||
public:
|
||||
BuilderThread(ContinentBuilder* _cBuilder, dtNavMeshParams& params) : Params(params), cBuilder(_cBuilder), Free(true) {}
|
||||
|
||||
void SetData(int x, int y, int map, const std::string& cont)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
MapId = map;
|
||||
Continent = cont;
|
||||
|
||||
void SetData(int x, int y, int map, const std::string& cont)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
MapId = map;
|
||||
Continent = cont;
|
||||
}
|
||||
|
||||
int svc()
|
||||
@@ -127,13 +127,13 @@ void ContinentBuilder::Build()
|
||||
CalculateTileBounds();
|
||||
|
||||
dtNavMeshParams params;
|
||||
|
||||
|
||||
std::vector<BuilderThread*> Threads;
|
||||
|
||||
if (TileMap->IsGlobalModel)
|
||||
{
|
||||
printf("Map %s ( %u ) is a WMO. Building with 1 thread.\n", Continent.c_str(), MapId);
|
||||
|
||||
|
||||
TileBuilder* builder = new TileBuilder(this, Continent, 0, 0, MapId);
|
||||
builder->AddGeometry(TileMap->Model, TileMap->ModelDefinition);
|
||||
uint8* nav = builder->BuildInstance(params);
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "Model.h"
|
||||
#include "G3D/Matrix4.h"
|
||||
|
||||
DoodadHandler::DoodadHandler( ADT* adt ) :
|
||||
DoodadHandler::DoodadHandler( ADT* adt ) :
|
||||
ObjectDataHandler(adt), _definitions(NULL), _paths(NULL)
|
||||
{
|
||||
Chunk* mddf = adt->ObjectData->GetChunkByName("MDDF");
|
||||
@@ -38,7 +38,7 @@ void DoodadHandler::ProcessInternal( MapChunk* mcnk )
|
||||
{
|
||||
if (!IsSane())
|
||||
return;
|
||||
|
||||
|
||||
uint32 refCount = mcnk->Header.DoodadRefs;
|
||||
FILE* stream = mcnk->Source->GetStream();
|
||||
fseek(stream, mcnk->Source->Offset + mcnk->Header.OffsetMCRF, SEEK_SET);
|
||||
@@ -111,7 +111,7 @@ void DoodadHandler::ReadDoodadPaths( Chunk* id, Chunk* data )
|
||||
void DoodadHandler::InsertModelGeometry(const DoodadDefinition& def, Model* model)
|
||||
{
|
||||
uint32 vertOffset = Vertices.size();
|
||||
|
||||
|
||||
for (std::vector<Vector3>::iterator itr = model->Vertices.begin(); itr != model->Vertices.end(); ++itr)
|
||||
Vertices.push_back(Utils::TransformDoodadVertex(def, *itr)); // Vertices have to be converted based on the information from the DoodadDefinition struct
|
||||
|
||||
|
||||
@@ -290,7 +290,7 @@ bool HandleArgs(int argc, char** argv, uint32& threads, std::set<uint32>& mapLis
|
||||
mapList.insert(atoi(token));
|
||||
token = strtok(NULL, ",");
|
||||
}
|
||||
|
||||
|
||||
free(copy);
|
||||
|
||||
printf("Extracting only provided list of maps (%u).\n", uint32(mapList.size()));
|
||||
@@ -448,7 +448,7 @@ int main(int argc, char* argv[])
|
||||
LoadTile(navMesh, buff);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
navMeshQuery->init(navMesh, 2048);
|
||||
|
||||
float nearestPt[3];
|
||||
@@ -465,7 +465,7 @@ int main(int argc, char* argv[])
|
||||
int hops;
|
||||
dtPolyRef* hopBuffer = new dtPolyRef[8192];
|
||||
dtStatus status = navMeshQuery->findPath(m_startRef, m_endRef, m_spos, m_epos, &m_filter, hopBuffer, &hops, 8192);
|
||||
|
||||
|
||||
int resultHopCount;
|
||||
float* straightPath = new float[2048*3];
|
||||
unsigned char* pathFlags = new unsigned char[2048];
|
||||
|
||||
@@ -257,7 +257,7 @@ uint8* TileBuilder::BuildTiled(dtNavMeshParams& navMeshParams)
|
||||
}
|
||||
|
||||
OutputDebugVertices();
|
||||
|
||||
|
||||
uint32 numVerts = _Geometry->Vertices.size();
|
||||
uint32 numTris = _Geometry->Triangles.size();
|
||||
float* vertices;
|
||||
|
||||
@@ -205,7 +205,7 @@ void Utils::SaveToDisk( FILE* stream, const std::string& path )
|
||||
fclose(stream);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// And write it in the file
|
||||
size_t wrote = fwrite(data, size, 1, disk);
|
||||
if (wrote != 1)
|
||||
|
||||
@@ -56,7 +56,7 @@ void WorldModelHandler::ProcessInternal( MapChunk* mcnk )
|
||||
{
|
||||
if (!IsSane())
|
||||
return;
|
||||
|
||||
|
||||
uint32 refCount = mcnk->Header.MapObjectRefs;
|
||||
FILE* stream = mcnk->Source->GetStream();
|
||||
fseek(stream, mcnk->Source->Offset + mcnk->Header.OffsetMCRF, SEEK_SET);
|
||||
|
||||
Reference in New Issue
Block a user