mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
Drop commented code in VMapManager.cpp.
This commit is contained in:
parent
b036c2b4ea
commit
cd44cfe79d
1 changed files with 0 additions and 15 deletions
|
|
@ -275,11 +275,7 @@ namespace VMAP
|
||||||
{
|
{
|
||||||
dirFileName = getDirFileName(pMapId);
|
dirFileName = getDirFileName(pMapId);
|
||||||
}
|
}
|
||||||
//size_t len = pBasePath.length() + dirFileName.length();
|
|
||||||
//char *filenameBuffer = new char[len+1];
|
|
||||||
//sprintf(filenameBuffer, "%s%s", pBasePath.c_str(), dirFileName.c_str());
|
|
||||||
std::string fb = pBasePath + dirFileName;
|
std::string fb = pBasePath + dirFileName;
|
||||||
//FILE* df = fopen(filenameBuffer, "rb");
|
|
||||||
FILE* df = fopen(fb.c_str(), "rb");
|
FILE* df = fopen(fb.c_str(), "rb");
|
||||||
if(df)
|
if(df)
|
||||||
{
|
{
|
||||||
|
|
@ -290,11 +286,7 @@ namespace VMAP
|
||||||
chomp(name);
|
chomp(name);
|
||||||
if(name.length() >1)
|
if(name.length() >1)
|
||||||
{
|
{
|
||||||
//size_t len2 = pBasePath.length() + name.length();
|
|
||||||
//char *filenameBuffer2 = new char[len2+1];
|
|
||||||
//sprintf(filenameBuffer2, "%s%s", pBasePath.c_str(), name.c_str());
|
|
||||||
std::string fb2 = pBasePath + name;
|
std::string fb2 = pBasePath + name;
|
||||||
//FILE* df2 = fopen(filenameBuffer2, "rb");
|
|
||||||
FILE* df2 = fopen(fb2.c_str(), "rb");
|
FILE* df2 = fopen(fb2.c_str(), "rb");
|
||||||
if(df2)
|
if(df2)
|
||||||
{
|
{
|
||||||
|
|
@ -304,12 +296,10 @@ namespace VMAP
|
||||||
result = true;
|
result = true;
|
||||||
fclose(df2);
|
fclose(df2);
|
||||||
}
|
}
|
||||||
//delete[] filenameBuffer2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fclose(df);
|
fclose(df);
|
||||||
}
|
}
|
||||||
//delete[] filenameBuffer;
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -666,15 +656,11 @@ namespace VMAP
|
||||||
bool MapTree::loadMap(const std::string& pDirFileName, unsigned int pMapTileIdent)
|
bool MapTree::loadMap(const std::string& pDirFileName, unsigned int pMapTileIdent)
|
||||||
{
|
{
|
||||||
bool result = true;
|
bool result = true;
|
||||||
//size_t len = iBasePath.length() + pDirFileName.length();
|
|
||||||
//char *filenameBuffer = new char[len+1];
|
|
||||||
if(!hasDirFile(pDirFileName))
|
if(!hasDirFile(pDirFileName))
|
||||||
{
|
{
|
||||||
FilesInDir filesInDir;
|
FilesInDir filesInDir;
|
||||||
result = false;
|
result = false;
|
||||||
std::string fb = iBasePath + pDirFileName;
|
std::string fb = iBasePath + pDirFileName;
|
||||||
//sprintf(filenameBuffer, "%s%s", iBasePath.c_str(), pDirFileName.c_str());
|
|
||||||
//FILE* df = fopen(filenameBuffer, "rb");
|
|
||||||
FILE* df = fopen(fb.c_str(), "rb");
|
FILE* df = fopen(fb.c_str(), "rb");
|
||||||
if(df)
|
if(df)
|
||||||
{
|
{
|
||||||
|
|
@ -735,7 +721,6 @@ namespace VMAP
|
||||||
filesInDir.incRefCount();
|
filesInDir.incRefCount();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//delete [] filenameBuffer;
|
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue