aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/build_graph.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/build_graph.cpp b/src/game/build_graph.cpp
index 2398b9c..b4c75d7 100644
--- a/src/game/build_graph.cpp
+++ b/src/game/build_graph.cpp
@@ -540,6 +540,11 @@ void BuildGraph::break_node(int node_id) {
// Devices mounted on the strut graph
// =============================================================================
+
+// NOTE: ClaimsStructures in Forts game data is a territory/team-claiming flag,
+// not a placement-legality rule. Do NOT add a strut-proximity placement gate
+// without new evidence. Every device snaps onto the nearest strut; unmounted
+// devices die only from weapon damage, which is acceptable.
int BuildGraph::mount_device(int na, int nb, int device_type, int team, float hp) {
if (na < 0 || na >= (int)nodes.size()) return -1;
if (nb < 0 || nb >= (int)nodes.size()) return -1;