Kitzunu
2021-01-10 14:27:55 +01:00
committed by GitHub
parent 7cf097eab2
commit da4edd547d
315 changed files with 3 additions and 729 deletions

View File

@@ -254,7 +254,6 @@ public:
else
return 0xFFFFFFFFFFFFFFFFuLL;
}
};
// Adt file min/max height chunk

View File

@@ -14,7 +14,6 @@
DBCFile::DBCFile(std::string filename):
filename(std::move(filename)), recordSize(0), recordCount(0), fieldCount(0), stringSize(0), data(nullptr), stringTable(nullptr)
{
}
bool DBCFile::open()

View File

@@ -77,7 +77,6 @@ MPQFile::MPQFile(const char* filename):
libmpq__file_read(mpq_a, filenum, (unsigned char*)buffer, size, &transferred);
/*libmpq_file_getdata(&mpq_a, hash, fileno, (unsigned char*)buffer);*/
return;
}
eof = true;
buffer = nullptr;

View File

@@ -19,7 +19,6 @@ using namespace std;
class MPQArchive
{
public:
mpq_archive_s* mpq_a;

View File

@@ -72,7 +72,6 @@ MPQFile::MPQFile(const char* filename):
libmpq__file_read(mpq_a, filenum, (unsigned char*)buffer, size, &transferred);
/*libmpq_file_getdata(&mpq_a, hash, fileno, (unsigned char*)buffer);*/
return;
}
eof = true;
buffer = 0;

View File

@@ -18,7 +18,6 @@
class MPQArchive
{
public:
mpq_archive_s* mpq_a;

View File

@@ -344,7 +344,6 @@ void ModelHeader::Read(FILE* stream)
if (count != 51)
printf("ModelHeader::Read: Failed to read some data expected 51, read %d\n", count);
}
WorldModelHeader WorldModelHeader::Read(FILE* stream)

View File

@@ -53,7 +53,6 @@ void WDT::ReadTileTable()
if (flags & hasTileFlag)
TileTable.push_back(TilePos(x, y));
}
}
}

View File

@@ -151,7 +151,6 @@ void WorldModelHandler::InsertModelGeometry( std::vector<Vector3>& verts, std::v
{
for (uint32 x = 0; x < liquidHeader.Width; x++)
{
if (!liquidDataGeometry.ShouldRender(x, y))
continue;
@@ -173,7 +172,6 @@ void WorldModelHandler::InsertModelGeometry( std::vector<Vector3>& verts, std::v
tris.push_back(Triangle<uint32>(Constants::TRIANGLE_TYPE_WATER, vertOffset, vertOffset + 2, vertOffset + 1));
tris.push_back(Triangle<uint32>(Constants::TRIANGLE_TYPE_WATER, vertOffset + 2, vertOffset + 3, vertOffset + 1));
}
}
}

View File

@@ -593,7 +593,6 @@ namespace MMAP
| \|
258---259 ... 515
*/
}
/**************************************************************************/
@@ -938,7 +937,6 @@ namespace MMAP
meshData.offMeshConnectionsAreas.append((unsigned char)0xFF);
meshData.offMeshConnectionsFlags.append((unsigned short)0xFF); // all movement masks can make this path
}
}
delete [] buf;

View File

@@ -15,7 +15,6 @@
DBCFile::DBCFile(std::string filename):
filename(std::move(filename)), recordSize(0), recordCount(0), fieldCount(0), stringSize(0), data(nullptr), stringTable(nullptr)
{
}
bool DBCFile::open()

View File

@@ -49,7 +49,6 @@ public:
ModelInstance() {}
ModelInstance(MPQFile& f, char const* ModelInstName, uint32 mapID, uint32 tileX, uint32 tileY, FILE* pDirfile);
};
#endif

View File

@@ -77,7 +77,6 @@ MPQFile::MPQFile(const char* filename):
libmpq__file_read(mpq_a, filenum, (unsigned char*)buffer, size, &transferred);
/*libmpq_file_getdata(&mpq_a, hash, fileno, (unsigned char*)buffer);*/
return;
}
eof = true;
buffer = nullptr;

View File

@@ -19,7 +19,6 @@ using namespace std;
class MPQArchive
{
public:
mpq_archive_s* mpq_a;