Преглед изворни кода

Check for end-of-battle after opening spells are cast, fixes potentially
infinite battle

Ivan Savenko пре 2 година
родитељ
комит
848454d48a
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      server/CGameHandler.cpp

+ 2 - 0
server/CGameHandler.cpp

@@ -6642,6 +6642,8 @@ void CGameHandler::runBattle()
 			}
 		}
 	}
+	// it is possible that due to opening spells one side was eliminated -> check for end of battle
+	checkBattleStateChanges();
 
 	bool firstRound = true;//FIXME: why first round is -1?