mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-22 00:27:58 +02:00
#1965 - treat dwelling defenders as neutrals
This commit is contained in:
@@ -107,6 +107,10 @@ int3 IBoatGenerator::bestLocation() const
|
||||
IBoatGenerator::EGeneratorState IBoatGenerator::shipyardStatus() const
|
||||
{
|
||||
int3 tile = bestLocation();
|
||||
|
||||
if(!tile.valid())
|
||||
return TILE_BLOCKED; //no available water
|
||||
|
||||
const TerrainTile *t = IObjectInterface::cb->getTile(tile);
|
||||
if(!t)
|
||||
return TILE_BLOCKED; //no available water
|
||||
|
||||
Reference in New Issue
Block a user