Explorar el Código

Disable AI and Cage of Warlorlds for release (crashes)

Michał W. Urbańczyk hace 16 años
padre
commit
5073365eb9
Se han modificado 2 ficheros con 5 adiciones y 0 borrados
  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;
 	boost::mutex::scoped_lock lock(mutex);
 	m_cb->waitTillRealize = true;
+
+	m_cb->endTurn();
+	return;
+
 	static int seed = rand();
 	srand(seed);
 	if(m_cb->getDate()==1)

+ 1 - 0
hch/CObjectHandler.cpp

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