mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
* fixed remaining parts of #760
* it's possible to switch active creature during tacts phase by clicking on stack * a few minor fixes after handleHex rewrite
This commit is contained in:
@@ -729,8 +729,10 @@ void CPlayerInterface::actionFinished(const BattleAction* action)
|
||||
|
||||
BattleAction CPlayerInterface::activeStack(const CStack * stack) //called when it's turn of that stack
|
||||
{
|
||||
|
||||
tlog5 << "Awaiting command for " << stack->nodeName() << std::endl;
|
||||
CBattleInterface *b = battleInt;
|
||||
|
||||
assert(!b->givenCommand->get()); //command buffer must be clean (we don't want to use old command)
|
||||
{
|
||||
boost::unique_lock<boost::recursive_mutex> un(*pim);
|
||||
b->stackActivated(stack);
|
||||
@@ -751,6 +753,7 @@ BattleAction CPlayerInterface::activeStack(const CStack * stack) //called when i
|
||||
b->givenCommand->data = NULL;
|
||||
|
||||
//return command
|
||||
tlog5 << "Giving command for " << stack->nodeName() << std::endl;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user