mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
feat(CI/Codestyle): added codestyle check (#3668)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright (C)
|
||||
# Copyright (C)
|
||||
#
|
||||
# This file is free software; as a special exception the author gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
|
||||
@@ -329,7 +329,6 @@ struct map_heightHeader
|
||||
#define MAP_LIQUID_TYPE_DARK_WATER 0x10
|
||||
#define MAP_LIQUID_TYPE_WMO_WATER 0x20
|
||||
|
||||
|
||||
#define MAP_LIQUID_NO_TYPE 0x0001
|
||||
#define MAP_LIQUID_NO_HEIGHT 0x0002
|
||||
|
||||
|
||||
@@ -88,4 +88,3 @@ DBCFile::Iterator DBCFile::end()
|
||||
assert(data);
|
||||
return Iterator(*this, stringTable);
|
||||
}
|
||||
|
||||
|
||||
@@ -124,4 +124,3 @@ private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ public:
|
||||
std::vector<Triangle<uint32>> Triangles;
|
||||
bool IsSane() { return _definitions && _paths; }
|
||||
|
||||
|
||||
protected:
|
||||
void ProcessInternal(MapChunk* chunk);
|
||||
|
||||
|
||||
@@ -132,4 +132,3 @@ void Geometry::AddAdt( ADT* adt )
|
||||
if (!adt->_WorldModelHandler->Triangles.empty())
|
||||
AddData(adt->_WorldModelHandler->Vertices, adt->_WorldModelHandler->Triangles);
|
||||
}
|
||||
|
||||
|
||||
@@ -166,7 +166,6 @@ void ExtractGameobjectModels()
|
||||
fwrite(indices, sizeof(uint16), numTris, output);
|
||||
}
|
||||
|
||||
|
||||
fwrite("VERT", 4, 1, output);
|
||||
wsize = sizeof(int) + sizeof(float) * 3 * numVerts;
|
||||
fwrite(&wsize, sizeof(int), 1, output);
|
||||
|
||||
@@ -70,4 +70,3 @@ void Model::ReadBoundingNormals()
|
||||
for (uint32 i = 0; i < Header.CountBoundingNormals; i++)
|
||||
Normals.push_back(Vector3::Read(Stream));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ WorldModelDefinition WorldModelDefinition::Read( FILE* file )
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
WorldModelHandler::WorldModelHandler( ADT* adt ) : ObjectDataHandler(adt), _definitions(nullptr), _paths(nullptr)
|
||||
{
|
||||
ReadModelPaths();
|
||||
|
||||
@@ -53,7 +53,6 @@ Generator command line args
|
||||
this command will build the map regardless of --skip* option settings
|
||||
if you do not specify a map number, builds all maps that pass the filters specified by --skip* options
|
||||
|
||||
|
||||
examples:
|
||||
|
||||
movement_extractor
|
||||
|
||||
@@ -222,7 +222,6 @@ namespace MMAP
|
||||
|
||||
fclose(objFile);
|
||||
|
||||
|
||||
char tileString[25];
|
||||
sprintf(tileString, "[%02u,%02u]: ", tileY, tileX);
|
||||
printf("%sWriting debug output... \r", tileString);
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace MMAP
|
||||
MapBuilder::MapBuilder(float maxWalkableAngle, bool skipLiquid,
|
||||
bool skipContinents, bool skipJunkMaps, bool skipBattlegrounds,
|
||||
bool debugOutput, bool bigBaseUnit, const char* offMeshFilePath) :
|
||||
|
||||
|
||||
m_debugOutput (debugOutput),
|
||||
m_offMeshFilePath (offMeshFilePath),
|
||||
m_skipContinents (skipContinents),
|
||||
@@ -57,7 +57,7 @@ namespace MMAP
|
||||
m_skipBattlegrounds (skipBattlegrounds),
|
||||
m_maxWalkableAngle (maxWalkableAngle),
|
||||
m_bigBaseUnit (bigBaseUnit),
|
||||
|
||||
|
||||
_cancelationToken (false)
|
||||
{
|
||||
m_terrainBuilder = new TerrainBuilder(skipLiquid);
|
||||
|
||||
@@ -269,7 +269,6 @@ namespace MMAP
|
||||
if (fread(&lheader, sizeof(map_liquidHeader), 1, mapFile) != 1)
|
||||
printf("TerrainBuilder::loadMap: Failed to read some data expected 1, read 0\n");
|
||||
|
||||
|
||||
float* liquid_map = nullptr;
|
||||
|
||||
if (!(lheader.flags & MAP_LIQUID_NO_TYPE))
|
||||
|
||||
@@ -115,4 +115,3 @@ namespace MMAP
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -94,7 +94,6 @@ struct MapChunkHeader
|
||||
uint32 effectId;
|
||||
};
|
||||
|
||||
|
||||
class ADTFile
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -118,7 +118,6 @@ bool Model::ConvertToVMAPModel(const char* outfilename)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Vec3D fixCoordSystem(Vec3D v)
|
||||
{
|
||||
return Vec3D(v.x, v.z, -v.y);
|
||||
|
||||
@@ -126,7 +126,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
class Vec2D
|
||||
{
|
||||
public:
|
||||
@@ -215,7 +214,6 @@ public:
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
friend std::istream& operator>>(std::istream& in, Vec2D& v)
|
||||
{
|
||||
in >> v.x >> v.y;
|
||||
|
||||
@@ -433,7 +433,6 @@ bool processArgv(int argc, char** argv, const char* versionString)
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
// Main
|
||||
//
|
||||
@@ -518,7 +517,6 @@ int main(int argc, char** argv)
|
||||
printf("Map - %s\n", map_ids[x].name);
|
||||
}
|
||||
|
||||
|
||||
delete dbc;
|
||||
ParsMapFiles();
|
||||
delete [] map_ids;
|
||||
|
||||
Reference in New Issue
Block a user