mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Compile fixes, cleanup
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "StdInc.h"
|
#include "StdInc.h"
|
||||||
#include "CMapGenOptions.h"
|
|
||||||
|
|
||||||
#include "../mapping/CMapHeader.h"
|
#include "../mapping/CMapHeader.h"
|
||||||
#include "CRmgTemplateStorage.h"
|
#include "CRmgTemplateStorage.h"
|
||||||
|
|||||||
@@ -80,13 +80,6 @@ void CMapGenerator::loadConfig()
|
|||||||
config.pandoraMultiplierSpells = randomMapJson["pandoras"]["valueMultiplierSpells"].Integer();
|
config.pandoraMultiplierSpells = randomMapJson["pandoras"]["valueMultiplierSpells"].Integer();
|
||||||
config.pandoraSpellSchool = randomMapJson["pandoras"]["valueSpellSchool"].Integer();
|
config.pandoraSpellSchool = randomMapJson["pandoras"]["valueSpellSchool"].Integer();
|
||||||
config.pandoraSpell60 = randomMapJson["pandoras"]["valueSpell60"].Integer();
|
config.pandoraSpell60 = randomMapJson["pandoras"]["valueSpell60"].Integer();
|
||||||
/*
|
|
||||||
//override config with game options
|
|
||||||
if(!mapGenOptions.isRoadEnabled(config.secondaryRoadType))
|
|
||||||
config.secondaryRoadType = "";
|
|
||||||
if(!mapGenOptions.isRoadEnabled(config.defaultRoadType))
|
|
||||||
config.defaultRoadType = config.secondaryRoadType;
|
|
||||||
*/
|
|
||||||
config.singleThread = randomMapJson["singleThread"].Bool();
|
config.singleThread = randomMapJson["singleThread"].Bool();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ protected:
|
|||||||
void collectNeighbourZones();
|
void collectNeighbourZones();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
std::vector<rmg::ZoneConnection> dConnections, dCompleted;
|
std::vector<rmg::ZoneConnection> dConnections, dCompleted;
|
||||||
std::map<TRmgTemplateZoneId, rmg::Tileset> dNeighbourZones;
|
std::map<TRmgTemplateZoneId, rmg::Tileset> dNeighbourZones;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ bool MinePlacer::placeMines(ObjectManager & manager)
|
|||||||
|
|
||||||
if (!i && (res == EGameResID::WOOD || res == EGameResID::ORE))
|
if (!i && (res == EGameResID::WOOD || res == EGameResID::ORE))
|
||||||
{
|
{
|
||||||
//only first wood&ore mines are close
|
//only first wood & ore mines are close
|
||||||
manager.addCloseObject(RequiredObjectInfo(mine, rmginfo.value));
|
manager.addCloseObject(RequiredObjectInfo(mine, rmginfo.value));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user