1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

Fixed issue that allowed to build multiple boats in town. Renamed state() to sth more sensible.

This commit is contained in:
Michał W. Urbańczyk
2013-07-21 10:08:32 +00:00
parent e45d174ba5
commit e9d51a2670
7 changed files with 11 additions and 10 deletions

View File

@ -604,7 +604,8 @@ void CCastleBuildings::buildingClicked(BuildingID building)
break;
case BuildingID::SHIPYARD:
LOCPLINT->showShipyardDialog(town);
if(town->shipyardStatus() == IBoatGenerator::GOOD)
LOCPLINT->showShipyardDialog(town);
break;
case BuildingID::FORT: