Forbid airlock-hive connection

This commit is contained in:
Dejvino
2026-11-15 21:54:09 +01:00
parent b38d5d4b56
commit 303f17c2a6
+9
View File
@@ -474,8 +474,17 @@ private:
}
// edges: room chain + door hanging off the hive node
// Note: intentionally skip direct AIRLK-HIVE edge to prevent
// airlock and hive from being directly connected in the network graph.
// Instead, connect AIRLK to the first non-hive room so the network
// remains fully connected through that intermediate room.
for (size_t i = 1; i < nodes_.size(); i++) {
if (i == (size_t)doorNodeIdx) continue; // door handled below
if (i == 1) {
// redirect AIRLK(0) -> HIVE(1) to AIRLK -> first non-hive room
edges_.push_back({ (uint8_t)0, (uint8_t)2, edgeLabel(0, 2) });
continue;
}
edges_.push_back({ (uint8_t)(i - 1), (uint8_t)i, edgeLabel(i - 1, (int)i) });
}
if (hiveNodeIdx >= 0 && doorNodeIdx >= 0) {