From 303f17c2a619a155401d52f0e4db30507ee7d61b Mon Sep 17 00:00:00 2001 From: Dejvino Date: Sun, 15 Nov 2026 21:54:09 +0100 Subject: [PATCH] Forbid airlock-hive connection --- src/netdeck/nd_mapgen.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/netdeck/nd_mapgen.h b/src/netdeck/nd_mapgen.h index 0cf1ae8..1570bfe 100644 --- a/src/netdeck/nd_mapgen.h +++ b/src/netdeck/nd_mapgen.h @@ -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) {