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:
4
CLua.cpp
4
CLua.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user