From 42877e75e2a67514dfeb185661e4f397b6eb044a Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Sun, 4 Apr 2021 21:49:50 +0200 Subject: Core/Maps: Change .map file version from FourCC to uint32 (#26326) --- src/tools/map_extractor/System.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/map_extractor') diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp index 3698caead75..58cf2034d95 100644 --- a/src/tools/map_extractor/System.cpp +++ b/src/tools/map_extractor/System.cpp @@ -262,7 +262,7 @@ void ReadLiquidTypeTableDBC() // Map file format data static char const* MAP_MAGIC = "MAPS"; -static char const* MAP_VERSION_MAGIC = "v1.9"; +static uint32 const MAP_VERSION_MAGIC = 9; static char const* MAP_AREA_MAGIC = "AREA"; static char const* MAP_HEIGHT_MAGIC = "MHGT"; static char const* MAP_LIQUID_MAGIC = "MLIQ"; @@ -379,7 +379,7 @@ bool ConvertADT(std::string const& inputPath, std::string const& outputPath, int // Prepare map header map_fileheader map; map.mapMagic = *reinterpret_cast(MAP_MAGIC); - map.versionMagic = *reinterpret_cast(MAP_VERSION_MAGIC); + map.versionMagic = MAP_VERSION_MAGIC; map.buildMagic = build; // Get area flags data -- cgit v1.2.3