浏览代码

Remove incorrect message on another player defeat

Ivan Savenko 2 年之前
父节点
当前提交
97ef69c9ab
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      client/CPlayerInterface.cpp

+ 0 - 9
client/CPlayerInterface.cpp

@@ -1625,15 +1625,6 @@ void CPlayerInterface::gameOver(PlayerColor player, const EVictoryLossCheckResul
 		if (GH.curInt == this)
 			GH.curInt = nullptr;
 	}
-	else
-	{
-		if (victoryLossCheckResult.loss() && cb->getPlayerStatus(playerID) == EPlayerStatus::INGAME) //enemy has lost
-		{
-			MetaString message = victoryLossCheckResult.messageToSelf;
-			message.appendLocalString(EMetaText::COLOR, player.getNum());
-			showInfoDialog(message.toString(), std::vector<std::shared_ptr<CComponent>>(1, std::make_shared<CComponent>(CComponent::flag, player.getNum(), 0)));
-		}
-	}
 }
 
 void CPlayerInterface::playerBonusChanged( const Bonus &bonus, bool gain )