mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 02:39:17 +00:00
Cleanup; fixed tons of warnings, set up the project to treat warnings as errors
This commit is contained in:
@@ -353,8 +353,7 @@ CMaterial* CMaterialLoader::ReadCorruptionMaterial()
|
||||
|
||||
if (AnimSize > 0)
|
||||
{
|
||||
u16 Unknown1 = mpFile->ReadShort();
|
||||
u16 Unknown2 = mpFile->ReadShort();
|
||||
mpFile->Seek(0x4, SEEK_CUR);
|
||||
pPass->mAnimMode = (EUVAnimMode) mpFile->ReadLong();
|
||||
|
||||
switch (pPass->mAnimMode)
|
||||
|
||||
@@ -330,7 +330,7 @@ SSurface* CModelLoader::LoadAssimpMesh(const aiMesh *pMesh, CMaterialSet *pSet)
|
||||
pSurf->CenterPoint = pSurf->AABox.Center();
|
||||
|
||||
if (pMesh->HasNormals())
|
||||
pSurf->ReflectionDirection /= pMesh->mNumVertices;
|
||||
pSurf->ReflectionDirection /= (float) pMesh->mNumVertices;
|
||||
else
|
||||
pSurf->ReflectionDirection = CVector3f(1.f, 0.f, 0.f);
|
||||
|
||||
|
||||
@@ -270,7 +270,7 @@ CPropertyTemplate* CTemplateLoader::LoadPropertyTemplate(tinyxml2::XMLElement *p
|
||||
}
|
||||
|
||||
// ************ SCRIPT OBJECT ************
|
||||
CScriptTemplate* CTemplateLoader::LoadScriptTemplate(tinyxml2::XMLDocument *pDoc, const TString& templateName, u32 objectID)
|
||||
CScriptTemplate* CTemplateLoader::LoadScriptTemplate(tinyxml2::XMLDocument *pDoc, const TString& /*templateName*/, u32 objectID)
|
||||
{
|
||||
CScriptTemplate *pScript = new CScriptTemplate(mpMaster);
|
||||
pScript->mObjectID = objectID;
|
||||
|
||||
@@ -228,7 +228,7 @@ void CWorldLoader::LoadReturnsMLVL(CInputStream& MLVL)
|
||||
{
|
||||
mpWorld->mpWorldName = (CStringTable*) gResCache.GetResource(MLVL.ReadLongLong(), "STRG");
|
||||
|
||||
bool Check = MLVL.ReadByte();
|
||||
bool Check = (MLVL.ReadByte() != 0);
|
||||
if (Check)
|
||||
{
|
||||
MLVL.ReadString();
|
||||
|
||||
Reference in New Issue
Block a user