mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Do not generate passable connections for virtual connections.
This commit is contained in:
parent
acc141d626
commit
47726625c2
@ -157,6 +157,14 @@ void ConnectionsPlacer::selfSideDirectConnection(const rmg::ZoneConnection & con
|
||||
}
|
||||
}
|
||||
|
||||
if (connection.getConnectionType() == EConnectionType::EConnectionType::FICTIVE ||
|
||||
connection.getConnectionType() == EConnectionType::EConnectionType::REPULSIVE)
|
||||
{
|
||||
//Fictive or repulsive connections are not real, take no action
|
||||
dCompleted.push_back(connection);
|
||||
return;
|
||||
}
|
||||
|
||||
float maxDist = -10e6;
|
||||
if(!success && !directProhibited && directConnectionIterator != dNeighbourZones.end())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user