mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-13 11:40:38 +02:00
CCastleBuildings: add dialog for shipyard when there is boat already
This commit is contained in:
parent
b5fa97b697
commit
f623865991
@ -627,6 +627,8 @@ void CCastleBuildings::buildingClicked(BuildingID building)
|
|||||||
case BuildingID::SHIPYARD:
|
case BuildingID::SHIPYARD:
|
||||||
if(town->shipyardStatus() == IBoatGenerator::GOOD)
|
if(town->shipyardStatus() == IBoatGenerator::GOOD)
|
||||||
LOCPLINT->showShipyardDialog(town);
|
LOCPLINT->showShipyardDialog(town);
|
||||||
|
else if(town->shipyardStatus() == IBoatGenerator::BOAT_ALREADY_BUILT)
|
||||||
|
LOCPLINT->showInfoDialog(CGI->generaltexth->allTexts[51]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BuildingID::FORT:
|
case BuildingID::FORT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user