- more ftp bugfixes
This commit is contained in:
parent
a82f238d48
commit
0c3ceb7c99
|
@ -77,7 +77,13 @@ void FTPClientThread::getMapFromServer(string mapFileName) {
|
||||||
FTP_Client_ResultType result = ftp_crt_FAIL;
|
FTP_Client_ResultType result = ftp_crt_FAIL;
|
||||||
|
|
||||||
string destFileExt = "";
|
string destFileExt = "";
|
||||||
string destFile = this->mapsPath.second + mapFileName;
|
string destFile = this->mapsPath.second;
|
||||||
|
|
||||||
|
if(EndsWith(destFile,"/") == false && EndsWith(destFile,"\\") == false) {
|
||||||
|
destFile += "/";
|
||||||
|
}
|
||||||
|
destFile += mapFileName;
|
||||||
|
|
||||||
if(EndsWith(destFile,".mgm") == false && EndsWith(destFile,".gbm") == false) {
|
if(EndsWith(destFile,".mgm") == false && EndsWith(destFile,".gbm") == false) {
|
||||||
destFileExt = ".mgm";
|
destFileExt = ".mgm";
|
||||||
destFile += destFileExt;
|
destFile += destFileExt;
|
||||||
|
|
Loading…
Reference in New Issue