mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 16:03:45 +00:00
refactor(Tools): restyle tools with astyle (#3705)
This commit is contained in:
@@ -13,7 +13,7 @@ char* wdtGetPlainName(char* FileName)
|
||||
{
|
||||
char* szTemp;
|
||||
|
||||
if((szTemp = strrchr(FileName, '\\')) != nullptr)
|
||||
if ((szTemp = strrchr(FileName, '\\')) != nullptr)
|
||||
FileName = szTemp + 1;
|
||||
return FileName;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ bool WDTFile::init(char* /*map_id*/, unsigned int mapID)
|
||||
std::string dirname = std::string(szWorkDirWmo) + "/dir_bin";
|
||||
FILE* dirfile;
|
||||
dirfile = fopen(dirname.c_str(), "ab");
|
||||
if(!dirfile)
|
||||
if (!dirfile)
|
||||
{
|
||||
printf("Can't open dirfile!'%s'\n", dirname.c_str());
|
||||
return false;
|
||||
@@ -108,7 +108,7 @@ WDTFile::~WDTFile(void)
|
||||
|
||||
ADTFile* WDTFile::GetMap(int x, int z)
|
||||
{
|
||||
if(!(x >= 0 && z >= 0 && x < 64 && z < 64))
|
||||
if (!(x >= 0 && z >= 0 && x < 64 && z < 64))
|
||||
return nullptr;
|
||||
|
||||
char name[512];
|
||||
|
||||
Reference in New Issue
Block a user