浏览代码

- Fixed mantis #1613

beegee1 12 年之前
父节点
当前提交
6caac8e82b
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      client/CPlayerInterface.cpp

+ 7 - 1
client/CPlayerInterface.cpp

@@ -2117,7 +2117,13 @@ void CPlayerInterface::gameOver(PlayerColor player, const EVictoryLossCheckResul
 
 
 		--howManyPeople;
 		--howManyPeople;
 
 
-		if(cb->getStartInfo()->mode != StartInfo::CAMPAIGN) //campaigns are handled in proposeNextMission
+		if(cb->getStartInfo()->mode == StartInfo::CAMPAIGN)
+		{
+			// if you lose the campaign go back to the main menu
+			// campaign wins are handled in proposeNextMission
+			if(victoryLossCheckResult.loss()) requestReturningToMainMenu();
+		}
+		else
 		{
 		{
 			if(howManyPeople == 0) //all human players eliminated
 			if(howManyPeople == 0) //all human players eliminated
 			{
 			{