mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
vcmi: do not block interface on setup spells
This commit is contained in:
parent
cb83a9371d
commit
15031d2e16
@ -335,12 +335,17 @@ void BattleInterface::battleFinished(const BattleResult& br, QueryID queryID)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BattleInterface::spellCast(const BattleSpellCast * sc)
|
void BattleInterface::spellCast(const BattleSpellCast * sc)
|
||||||
|
{
|
||||||
|
// Do not deactivate anything in tactics mode
|
||||||
|
// This is battlefield setup spells
|
||||||
|
if(!tacticsMode)
|
||||||
{
|
{
|
||||||
windowObject->blockUI(true);
|
windowObject->blockUI(true);
|
||||||
|
|
||||||
// Disable current active stack duing the cast
|
// Disable current active stack duing the cast
|
||||||
// Store the current activeStack to stackToActivate
|
// Store the current activeStack to stackToActivate
|
||||||
stacksController->deactivateStack();
|
stacksController->deactivateStack();
|
||||||
|
}
|
||||||
|
|
||||||
CCS->curh->set(Cursor::Combat::BLOCKED);
|
CCS->curh->set(Cursor::Combat::BLOCKED);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user