mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix IADS Network update for basic mode
the iads update_network method would recreate a basic iads network as advanced network by range. This small change now checks for advanced mode before calculating connetions.
This commit is contained in:
parent
7ab8683d72
commit
d82ac8f355
@ -171,16 +171,17 @@ class IadsNetwork:
|
|||||||
# the ground object is not participating to the IADS Network
|
# the ground object is not participating to the IADS Network
|
||||||
return
|
return
|
||||||
|
|
||||||
# Create the connections to the secondary nodes
|
if self.advanced_iads:
|
||||||
if self.iads_config:
|
# Create the connections to the secondary nodes
|
||||||
# If iads_config was defined and campaign designer added a config for the
|
if self.iads_config:
|
||||||
# given primary node generate the connections from the config.
|
# If iads_config was defined and campaign designer added a config for
|
||||||
# If the primary node was not defined in the iads_config it will be added
|
# the given primary node generate the connections from the config. If
|
||||||
# without any connections
|
# the primary node was not defined in the iads_config it will be added
|
||||||
self._add_connections_from_config(node)
|
# without any connections
|
||||||
else:
|
self._add_connections_from_config(node)
|
||||||
# Otherwise calculate the connections by range
|
else:
|
||||||
self._calculate_connections_by_range(node)
|
# Otherwise calculate the connections by range
|
||||||
|
self._calculate_connections_by_range(node)
|
||||||
|
|
||||||
events.update_iads_node(node)
|
events.update_iads_node(node)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user