1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

battles are now enabled - but running any freezes the screen

Tow, do something with that
This commit is contained in:
mateuszb
2008-02-28 17:00:16 +00:00
parent fe2356ea0f
commit 8c0536be8e
2 changed files with 43 additions and 21 deletions

View File

@@ -636,12 +636,12 @@ void CHeroScript::onHeroVisit(CGObjectInstance *os, int heroID)
}
else
{
/*cb->startBattle(
cb->startBattle(
&(static_cast<CGHeroInstance*>(heroes[heroID]))->army,
&(static_cast<CGHeroInstance*>(os))->army,
os->pos,
static_cast<CGHeroInstance*>(heroes[heroID]),
static_cast<CGHeroInstance*>(os));*/
static_cast<CGHeroInstance*>(os));
}
}
std::vector<int> CHeroScript::yourObjects() //returns IDs of objects which are handled by script