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:
@ -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:
|
||||
|
Reference in New Issue
Block a user