chore(Tools/Mapextractor): clean up an unnecessary function

This commit is contained in:
IntelligentQuantum
2022-04-02 02:41:33 +04:30
committed by GitHub
parent b467d6c1cf
commit 6d8520e72d
2 changed files with 0 additions and 26 deletions

View File

@@ -19,17 +19,9 @@
#include "wdt.h"
u_map_fcc MWMOMagic = { {'O', 'M', 'W', 'M'} };
u_map_fcc MPHDMagic = { {'D', 'H', 'P', 'M'} };
u_map_fcc MAINMagic = { {'N', 'I', 'A', 'M'} };
bool wdt_MWMO::prepareLoadedData()
{
if (fcc != MWMOMagic.fcc)
return false;
return true;
}
bool wdt_MPHD::prepareLoadedData()
{
if (fcc != MPHDMagic.fcc)
@@ -48,7 +40,6 @@ WDT_file::WDT_file()
{
mphd = nullptr;
main = nullptr;
wmo = nullptr;
}
WDT_file::~WDT_file()
@@ -60,7 +51,6 @@ void WDT_file::free()
{
mphd = nullptr;
main = nullptr;
wmo = nullptr;
FileLoader::free();
}
@@ -76,8 +66,5 @@ bool WDT_file::prepareLoadedData()
main = (wdt_MAIN*)((uint8*)mphd + mphd->size + 8);
if (!main->prepareLoadedData())
return false;
wmo = (wdt_MWMO*)((uint8*)main + main->size + 8);
// if (!wmo->prepareLoadedData())
// return false;
return true;
}

View File

@@ -24,18 +24,6 @@
//**************************************************************************************
#define WDT_MAP_SIZE 64
class wdt_MWMO
{
union
{
uint32 fcc;
char fcc_txt[4];
};
public:
uint32 size;
bool prepareLoadedData();
};
class wdt_MPHD
{
union
@@ -87,7 +75,6 @@ public:
wdt_MPHD* mphd;
wdt_MAIN* main;
wdt_MWMO* wmo;
};
#endif