feat(CI/Codestyle): added codestyle check (#3668)

This commit is contained in:
Kargatum
2021-01-09 17:59:50 +07:00
committed by GitHub
parent 57aa46244d
commit ea93a5c1a1
400 changed files with 238 additions and 748 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -88,4 +88,3 @@ DBCFile::Iterator DBCFile::end()
assert(data);
return Iterator(*this, stringTable);
}

View File

@@ -124,4 +124,3 @@ private:
};
#endif

View File

@@ -53,7 +53,6 @@ public:
std::vector<Triangle<uint32>> Triangles;
bool IsSane() { return _definitions && _paths; }
protected:
void ProcessInternal(MapChunk* chunk);

View File

@@ -132,4 +132,3 @@ void Geometry::AddAdt( ADT* adt )
if (!adt->_WorldModelHandler->Triangles.empty())
AddData(adt->_WorldModelHandler->Vertices, adt->_WorldModelHandler->Triangles);
}

View File

@@ -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);

View File

@@ -70,4 +70,3 @@ void Model::ReadBoundingNormals()
for (uint32 i = 0; i < Header.CountBoundingNormals; i++)
Normals.push_back(Vector3::Read(Stream));
}

View File

@@ -34,7 +34,6 @@ WorldModelDefinition WorldModelDefinition::Read( FILE* file )
return ret;
}
WorldModelHandler::WorldModelHandler( ADT* adt ) : ObjectDataHandler(adt), _definitions(nullptr), _paths(nullptr)
{
ReadModelPaths();

View File

@@ -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

View File

@@ -222,7 +222,6 @@ namespace MMAP
fclose(objFile);
char tileString[25];
sprintf(tileString, "[%02u,%02u]: ", tileY, tileX);
printf("%sWriting debug output... \r", tileString);

View File

@@ -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);

View File

@@ -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))

View File

@@ -115,4 +115,3 @@ namespace MMAP
}
#endif

View File

@@ -94,7 +94,6 @@ struct MapChunkHeader
uint32 effectId;
};
class ADTFile
{
private:

View File

@@ -118,7 +118,6 @@ bool Model::ConvertToVMAPModel(const char* outfilename)
return true;
}
Vec3D fixCoordSystem(Vec3D v)
{
return Vec3D(v.x, v.z, -v.y);

View File

@@ -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;

View File

@@ -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;