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

- Some hardcoded settings will now be read from config/defaultMods.json

- Fixed AI crash when it was placed in closed and safe area
This commit is contained in:
DjWarmonger
2012-08-11 09:06:23 +00:00
parent aa326491a3
commit edbc7f1223
8 changed files with 61 additions and 14 deletions

View File

@@ -1175,7 +1175,7 @@ void CGameHandler::newTurn()
if (monthType < 40) //double growth
{
n.specialWeek = NewTurn::DOUBLE_GROWTH;
if (ALLCREATURESGETDOUBLEMONTHS)
if (VLC->modh->settings.ALL_CREATURES_GET_DOUBLE_MONTHS)
{
std::pair<int,int> newMonster(54, VLC->creh->pickRandomMonster(boost::ref(rand)));
n.creatureid = newMonster.second;