浏览代码

Disable AI and Cage of Warlorlds for release (crashes)

Michał W. Urbańczyk 16 年之前
父节点
当前提交
5073365eb9
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 4 0
      AI/GeniusAI/CGeniusAI.cpp
  2. 1 0
      hch/CObjectHandler.cpp

+ 4 - 0
AI/GeniusAI/CGeniusAI.cpp

@@ -816,6 +816,10 @@ void CGeniusAI::yourTurn()
 	static boost::mutex mutex;
 	static boost::mutex mutex;
 	boost::mutex::scoped_lock lock(mutex);
 	boost::mutex::scoped_lock lock(mutex);
 	m_cb->waitTillRealize = true;
 	m_cb->waitTillRealize = true;
+
+	m_cb->endTurn();
+	return;
+
 	static int seed = rand();
 	static int seed = rand();
 	srand(seed);
 	srand(seed);
 	if(m_cb->getDate()==1)
 	if(m_cb->getDate()==1)

+ 1 - 0
hch/CObjectHandler.cpp

@@ -2009,6 +2009,7 @@ void CTownBonus::onHeroVisit (const CGHeroInstance * h) const
 				switch(town->subID)
 				switch(town->subID)
 				{
 				{
 					case 7: //cage of warlords
 					case 7: //cage of warlords
+						return;
 						cb->changePrimSkill (heroID, 1, 1);
 						cb->changePrimSkill (heroID, 1, 1);
 						iw.components.push_back (Component(Component::PRIM_SKILL, 1, 1, 0));
 						iw.components.push_back (Component(Component::PRIM_SKILL, 1, 1, 0));
 						break;
 						break;