Browse Source

Do not generate passable connections for virtual connections.

Tomasz Zieliński 2 years ago
parent
commit
47726625c2
1 changed files with 8 additions and 0 deletions
  1. 8 0
      lib/rmg/modificators/ConnectionsPlacer.cpp

+ 8 - 0
lib/rmg/modificators/ConnectionsPlacer.cpp

@@ -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())
 	{