mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 05:43:59 +02:00
- more ftp bugfixes
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user