mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
More coding style.
This commit is contained in:
parent
b0006cfbc0
commit
27395d13c4
2 changed files with 11 additions and 6 deletions
|
|
@ -24,7 +24,7 @@
|
|||
#define __STORMLIB_SELF__ // Don't use StormLib.lib
|
||||
#include "StormLib.h"
|
||||
|
||||
#pragma warning(disable : 4505)
|
||||
#pragma warning(disable : 4505)
|
||||
#pragma comment(lib, "Winmm.lib")
|
||||
|
||||
//From Extractor
|
||||
|
|
@ -44,7 +44,8 @@
|
|||
typedef unsigned char uint8;
|
||||
typedef unsigned short uint16;
|
||||
typedef unsigned int uint32;
|
||||
typedef struct{
|
||||
typedef struct
|
||||
{
|
||||
char name[64];
|
||||
unsigned int id;
|
||||
}map_id;
|
||||
|
|
@ -208,14 +209,17 @@ int ExtractWmo(const std::vector<std::string>& pArchiveNames)
|
|||
// Close the search handle
|
||||
if(hFind != NULL)
|
||||
SFileFindClose(hFind);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Close both archives
|
||||
if(hMpq != NULL)
|
||||
{
|
||||
//SFileCloseArchive(hMpq);
|
||||
if(nError == ERROR_SUCCESS)
|
||||
printf("\nExtract wmo complete (No errors)\n");
|
||||
}
|
||||
|
||||
if(nError == ERROR_SUCCESS)
|
||||
printf("\nExtract wmo complete (No errors)\n");
|
||||
|
||||
return nError;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,7 +106,8 @@ WDTFile::~WDTFile(void)
|
|||
|
||||
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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue