diff options
author | megamage <none@none> | 2009-03-10 15:33:54 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-10 15:33:54 -0600 |
commit | dc4a456416870697d1bf727ab5c7b9f6cf3537f0 (patch) | |
tree | f71b84de473b1cf364899169c6c4cfa2dcae9a00 /contrib/extractor/System.cpp | |
parent | 099d302e690cf767c9247f7a910d86286af4745f (diff) |
[7439] Fix wrong liquid level in some places. Need reectract maps. Author: DiSlord
Remove some log on extract maps.
Add liquid status log to .gps command
--HG--
branch : trunk
Diffstat (limited to 'contrib/extractor/System.cpp')
-rw-r--r-- | contrib/extractor/System.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/extractor/System.cpp b/contrib/extractor/System.cpp index 7d498102603..2696c7b1a2b 100644 --- a/contrib/extractor/System.cpp +++ b/contrib/extractor/System.cpp @@ -207,7 +207,7 @@ void ReadLiquidTypeTableDBC() // Map file format data #define MAP_MAGIC 'SPAM' -#define MAP_VERSION_MAGIC '0.1v' +#define MAP_VERSION_MAGIC '0.1w' #define MAP_AREA_MAGIC 'AERA' #define MAP_HEIGTH_MAGIC 'TGHM' #define MAP_LIQUID_MAGIC 'QILM' @@ -304,7 +304,6 @@ bool ConvertADT(char *filename, char *filename2, int cell_y, int cell_x) memset(liquid_show, 0, sizeof(liquid_show)); memset(liquid_type, 0, sizeof(liquid_type)); - memset(liquid_height, 0, sizeof(liquid_height)); // Prepare map header map_fileheader map; @@ -709,6 +708,8 @@ bool ConvertADT(char *filename, char *filename2, int cell_y, int cell_x) if (maxHeight < h) maxHeight = h; if (minHeight > h) minHeight = h; } + else + liquid_height[y][x] = CONF_use_minHeight; } } map.liquidMapOffset = map.heightMapOffset + map.heightMapSize; @@ -812,11 +813,11 @@ void ExtractMapsFromMpq() printf("Convert map files\n"); for(uint32 z = 0; z < map_count; ++z) { - printf("Extract %s (%d/%d) \n", map_ids[z].name, z, map_count); + printf("Extract %s (%d/%d) \n", map_ids[z].name, z+1, map_count); // Loadup map grid data sprintf(mpq_map_name, "World\\Maps\\%s\\%s.wdt", map_ids[z].name, map_ids[z].name); WDT_file wdt; - if (!wdt.loadFile(mpq_map_name)) + if (!wdt.loadFile(mpq_map_name, false)) { // printf("Error loading %s map wdt data\n", map_ids[z].name); continue; |