More coding style.

This commit is contained in:
tomrus88 2009-05-29 10:04:29 +04:00
parent b0006cfbc0
commit 27395d13c4
2 changed files with 11 additions and 6 deletions

View file

@ -44,7 +44,8 @@
typedef unsigned char uint8; typedef unsigned char uint8;
typedef unsigned short uint16; typedef unsigned short uint16;
typedef unsigned int uint32; typedef unsigned int uint32;
typedef struct{ typedef struct
{
char name[64]; char name[64];
unsigned int id; unsigned int id;
}map_id; }map_id;
@ -208,12 +209,15 @@ int ExtractWmo(const std::vector<std::string>& pArchiveNames)
// Close the search handle // Close the search handle
if(hFind != NULL) if(hFind != NULL)
SFileFindClose(hFind); SFileFindClose(hFind);
}
}
}
}
// Close both archives // Close both archives
if(hMpq != NULL) if(hMpq != NULL)
{
//SFileCloseArchive(hMpq); //SFileCloseArchive(hMpq);
}
if(nError == ERROR_SUCCESS) if(nError == ERROR_SUCCESS)
printf("\nExtract wmo complete (No errors)\n"); printf("\nExtract wmo complete (No errors)\n");

View file

@ -106,7 +106,8 @@ WDTFile::~WDTFile(void)
ADTFile* WDTFile::GetMap(int x, int z) ADTFile* WDTFile::GetMap(int x, int z)
{ {
if(!(x>=0 && z >= 0 && x<64 && z<64)) return NULL; if(!(x>=0 && z >= 0 && x<64 && z<64))
return NULL;
char name[512]; char name[512];