From 7c88bb7e4fc7403d6393fc6e30abd44a92223c6d Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Fri, 16 Jun 2023 20:21:37 +0300 Subject: [PATCH] Detect mirror maps --- lib/mapping/MapFormatH3M.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/mapping/MapFormatH3M.cpp b/lib/mapping/MapFormatH3M.cpp index f603bee3b..b2fd4712d 100644 --- a/lib/mapping/MapFormatH3M.cpp +++ b/lib/mapping/MapFormatH3M.cpp @@ -133,13 +133,15 @@ void CMapLoaderH3M::readHeader() if(hotaVersion > 0) { - reader->skipZero(1); - //TODO: HotA + bool isMirrorMap = reader->readBool(); bool isArenaMap = reader->readBool(); + + //TODO: HotA + if (isMirrorMap) + logGlobal->warn("Map '%s': Mirror maps are not yet supported!", mapName); + if (isArenaMap) - { logGlobal->warn("Map '%s': Arena maps are not supported!", mapName); - } } if(hotaVersion > 1)