mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fixed mantis #1582
This commit is contained in:
parent
9ebd4a5c00
commit
aa1c193b88
@ -1679,14 +1679,14 @@ void CBattleInterface::setHoveredStack(const CStack * stack)
|
||||
|
||||
void CBattleInterface::activateStack()
|
||||
{
|
||||
myTurn = true;
|
||||
if(!!attackerInt && defenderInt) //hotseat -> need to pick which interface "takes over" as active
|
||||
curInt = attackerInt->playerID == stackToActivate->owner ? attackerInt : defenderInt;
|
||||
|
||||
setActiveStack(stackToActivate);
|
||||
stackToActivate = nullptr;
|
||||
const CStack *s = activeStack;
|
||||
|
||||
myTurn = true;
|
||||
if(!!attackerInt && defenderInt) //hotseat -> need to pick which interface "takes over" as active
|
||||
curInt = attackerInt->playerID == s->owner ? attackerInt : defenderInt;
|
||||
|
||||
queue->update();
|
||||
redrawBackgroundWithHexes(activeStack);
|
||||
|
||||
@ -3672,4 +3672,4 @@ void CBattleInterface::showPiecesOfWall(SDL_Surface * to, std::vector<int> piece
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user