Browse Source

vcmi: do not block interface on setup spells

Konstantin 2 năm trước cách đây
mục cha
commit
15031d2e16
1 tập tin đã thay đổi với 9 bổ sung4 xóa
  1. 9 4
      client/battle/BattleInterface.cpp

+ 9 - 4
client/battle/BattleInterface.cpp

@@ -336,11 +336,16 @@ void BattleInterface::battleFinished(const BattleResult& br, QueryID queryID)
 
 void BattleInterface::spellCast(const BattleSpellCast * sc)
 {
-	windowObject->blockUI(true);
+	// Do not deactivate anything in tactics mode
+	// This is battlefield setup spells
+	if(!tacticsMode)
+	{
+		windowObject->blockUI(true);
 
-	// Disable current active stack duing the cast
-	// Store the current activeStack to stackToActivate
-	stacksController->deactivateStack();
+		// Disable current active stack duing the cast
+		// Store the current activeStack to stackToActivate
+		stacksController->deactivateStack();
+	}
 
 	CCS->curh->set(Cursor::Combat::BLOCKED);