Browse Source

CCastleBuildings: add dialog for shipyard when there is boat already

Arseniy Shestakov 9 years ago
parent
commit
f623865991
1 changed files with 2 additions and 0 deletions
  1. 2 0
      client/windows/CCastleInterface.cpp

+ 2 - 0
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: