mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
More coding style.
This commit is contained in:
parent
b0006cfbc0
commit
27395d13c4
2 changed files with 11 additions and 6 deletions
|
|
@ -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");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue