1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Minor formatting

This commit is contained in:
Ivan Savenko
2023-06-20 23:19:54 +03:00
parent 1fb2b60999
commit ce3e150d59
3 changed files with 4 additions and 5 deletions

View File

@ -1377,11 +1377,10 @@ const IObjectInterface * CGShipyard::getObject() const
void CGShipyard::onHeroVisit( const CGHeroInstance * h ) const
{
if(!cb->gameState()->getPlayerRelations(tempOwner, h->tempOwner))
if(cb->gameState()->getPlayerRelations(tempOwner, h->tempOwner) == PlayerRelations::ENEMIES)
cb->setOwner(this, h->tempOwner);
auto s = shipyardStatus();
if(s != IBoatGenerator::GOOD)
if(shipyardStatus() != IBoatGenerator::GOOD)
{
InfoWindow iw;
iw.type = EInfoWindowMode::AUTO;