1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

multilevel support

This commit is contained in:
Laserlicht
2025-08-01 00:37:32 +02:00
parent 50a240a858
commit ecfe09f6b1
27 changed files with 156 additions and 107 deletions

View File

@@ -256,7 +256,7 @@ void MapHandler::initObjectRects()
if(!map)
return;
tileObjects.resize(map->width * map->height * (map->twoLevel ? 2 : 1));
tileObjects.resize(map->width * map->height * map->mapLevels);
//initializing objects / rects
for(const auto & elem : map->objects)