1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Detect mirror maps

This commit is contained in:
Ivan Savenko 2023-06-16 20:21:37 +03:00
parent 636b2ea856
commit 7c88bb7e4f

View File

@ -133,13 +133,15 @@ void CMapLoaderH3M::readHeader()
if(hotaVersion > 0) if(hotaVersion > 0)
{ {
reader->skipZero(1); bool isMirrorMap = reader->readBool();
//TODO: HotA
bool isArenaMap = reader->readBool(); bool isArenaMap = reader->readBool();
//TODO: HotA
if (isMirrorMap)
logGlobal->warn("Map '%s': Mirror maps are not yet supported!", mapName);
if (isArenaMap) if (isArenaMap)
{
logGlobal->warn("Map '%s': Arena maps are not supported!", mapName); logGlobal->warn("Map '%s': Arena maps are not supported!", mapName);
}
} }
if(hotaVersion > 1) if(hotaVersion > 1)