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

CMapGenerator.cpp: remove unused variables

This commit is contained in:
AlexVinS
2015-01-03 01:04:42 +03:00
parent 8e99e803c1
commit 8deee7610c

View File

@@ -207,10 +207,6 @@ void CMapGenerator::genZones()
editManager->getTerrainSelection().selectRange(MapRect(int3(0, 0, 0), mapGenOptions->getWidth(), mapGenOptions->getHeight()));
editManager->drawTerrain(ETerrainType::GRASS, &rand);
auto pcnt = mapGenOptions->getPlayerCount();
auto w = mapGenOptions->getWidth();
auto h = mapGenOptions->getHeight();
auto tmpl = mapGenOptions->getMapTemplate();
zones = tmpl->getZones(); //copy from template (refactor?)
@@ -218,8 +214,6 @@ void CMapGenerator::genZones()
placer.placeZones(mapGenOptions, &rand);
placer.assignZones(mapGenOptions);
int i = 0;
logGlobal->infoStream() << "Zones generated successfully";
}