Prechádzať zdrojové kódy

Merge pull request #5883 from IvanSavenko/opening_spell_freeze_fix

Fix freeze on battle opening spell & add debug logging
Ivan Savenko 3 mesiacov pred
rodič
commit
2774502526
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      client/battle/BattleInterface.cpp

+ 2 - 0
client/battle/BattleInterface.cpp

@@ -364,6 +364,8 @@ void BattleInterface::battleFinished(const BattleResult& br, QueryID queryID)
 
 
 void BattleInterface::spellCast(const BattleSpellCast * sc)
 void BattleInterface::spellCast(const BattleSpellCast * sc)
 {
 {
+	waitForAnimations();
+
 	// Do not deactivate anything in tactics mode
 	// Do not deactivate anything in tactics mode
 	// This is battlefield setup spells
 	// This is battlefield setup spells
 	if(!tacticsMode)
 	if(!tacticsMode)