diff options
| author | Nay <dnpd.dd@gmail.com> | 2012-08-20 16:08:27 +0100 |
|---|---|---|
| committer | Nay <dnpd.dd@gmail.com> | 2012-08-20 16:08:27 +0100 |
| commit | 11652278df4a48a25589392e8a5472f0dc3e9e9f (patch) | |
| tree | 439e9e0ef839e2bd1f838739f93f086207da5b57 /src/tools/vmap4_extractor | |
| parent | 30933a7f50048421576727c1f7cc752f31ab03cc (diff) | |
| parent | 936c62ef4cfe85b04f689d08696a29a792815c2a (diff) | |
Merge remote-tracking branch 'origin/master' into 4.3.4
Conflicts:
src/tools/vmap4_extractor/vmapexport.cpp
Diffstat (limited to 'src/tools/vmap4_extractor')
| -rw-r--r-- | src/tools/vmap4_extractor/vmapexport.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/vmap4_extractor/vmapexport.cpp b/src/tools/vmap4_extractor/vmapexport.cpp index d7b2f30d349..c1e4ee26650 100644 --- a/src/tools/vmap4_extractor/vmapexport.cpp +++ b/src/tools/vmap4_extractor/vmapexport.cpp @@ -475,9 +475,9 @@ bool processArgv(int argc, char ** argv, const char *versionString) { bool result = true; bool hasInputPathParam = false; - bool preciseVectorData = false; + preciseVectorData = false; - for(int i=1; i< argc; ++i) + for(int i = 1; i < argc; ++i) { if(strcmp("-s",argv[i]) == 0) { @@ -551,7 +551,7 @@ int main(int argc, char ** argv) const char *versionString = "V4.00 2012_02"; // Use command line arguments, when some - if(!processArgv(argc, argv, versionString)) + if (!processArgv(argc, argv, versionString)) return 1; // some simple check if working dir is dirty @@ -573,7 +573,7 @@ int main(int argc, char ** argv) printf("Extract %s. Beginning work ....\n",versionString); //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx // Create the working directory - if(mkdir(szWorkDirWmo + if (mkdir(szWorkDirWmo #ifdef __linux__ , 0711 #endif @@ -601,15 +601,15 @@ int main(int argc, char ** argv) ReadLiquidTypeTableDBC(); // extract data - if(success) + if (success) success = ExtractWmo(); //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx //map.dbc - if(success) + if (success) { DBCFile * dbc = new DBCFile(LocaleMpq, "DBFilesClient\\Map.dbc"); - if(!dbc->open()) + if (!dbc->open()) { delete dbc; printf("FATAL ERROR: Map.dbc not found in data file.\n"); @@ -617,7 +617,7 @@ int main(int argc, char ** argv) } map_count=dbc->getRecordCount (); map_ids=new map_id[map_count]; - for(unsigned int x=0;x<map_count;++x) + for (unsigned int x=0;x<map_count;++x) { map_ids[x].id=dbc->getRecord (x).getUInt(0); strcpy(map_ids[x].name,dbc->getRecord(x).getString(1)); @@ -637,7 +637,7 @@ int main(int argc, char ** argv) SFileCloseArchive(WorldMpq); printf("\n"); - if(!success) + if (!success) { printf("ERROR: Extract %s. Work NOT complete.\n Precise vector data=%d.\nPress any key.\n",versionString, preciseVectorData); getchar(); |
