From f623865991d50f44e73102d7632d83f016928e1a Mon Sep 17 00:00:00 2001 From: Arseniy Shestakov Date: Wed, 14 Sep 2016 03:32:03 +0300 Subject: [PATCH] CCastleBuildings: add dialog for shipyard when there is boat already --- client/windows/CCastleInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/windows/CCastleInterface.cpp b/client/windows/CCastleInterface.cpp index 146403098..67d7bbb4b 100644 --- a/client/windows/CCastleInterface.cpp +++ b/client/windows/CCastleInterface.cpp @@ -627,6 +627,8 @@ void CCastleBuildings::buildingClicked(BuildingID building) case BuildingID::SHIPYARD: if(town->shipyardStatus() == IBoatGenerator::GOOD) LOCPLINT->showShipyardDialog(town); + else if(town->shipyardStatus() == IBoatGenerator::BOAT_ALREADY_BUILT) + LOCPLINT->showInfoDialog(CGI->generaltexth->allTexts[51]); break; case BuildingID::FORT: