1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Paint native terrain in zones.

This commit is contained in:
DjWarmonger 2014-05-23 21:43:33 +02:00
parent 75cea9206d
commit 3a6f748fb5

View File

@ -368,6 +368,9 @@ bool CRmgTemplateZone::fill(CMapGenerator* gen)
playerInfo.posOfMainTown = town->pos - int3(2, 0, 0);
playerInfo.generateHeroAtMainTown = true;
gen->editManager->getTerrainSelection().selectRange(MapRect(shape[0], shape[2].y - shape[0].y, shape[2].x - shape[0].x));
gen->editManager->drawTerrain(VLC->townh->factions[townId]->nativeTerrain, &gen->rand);
//required_objects.push_back(town);
std::vector<Res::ERes> required_mines;