Рефактор.

This commit is contained in:
sasha80
2025-12-11 11:14:38 +03:00
parent 94f5159ad9
commit 304a8c6453
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ func _on_resized() -> void:
func _enter_tree() -> void:
if Engine.is_editor_hint(): return
var unit_any = network.get_unit_instance(unit_name)
var unit_any: = network.get_unit_instance(unit_name)
unit_any.connect('data_received', Callable(self, 'on_data_received'))
unit_any.connect('line_changed', Callable(self, 'on_line_changed'))
$margin/vbox.alignment = alignment
@@ -65,6 +65,6 @@ func _enter_tree() -> void:
func _exit_tree() -> void:
if Engine.is_editor_hint(): return
var unit_any = network.get_unit_instance(unit_name)
var unit_any: = network.get_unit_instance(unit_name)
unit_any.disconnect('data_received', Callable(self, 'on_data_received'))
unit_any.disconnect('line_changed', Callable(self, 'on_line_changed'))

View File

@@ -273,7 +273,7 @@ func on_th_aoa_update(threats: Dictionary, ecms: Dictionary, unit_instance) -> v
gos_nmfs.clear()
for thr in threats.values():
var fs_arr: Array = []
var th_aoa = fposmod(thr.aoa - course, 360)
var th_aoa: = fposmod(thr.aoa - course, 360)
prd.find_fs_index(th_aoa, thr.freq, fs_arr)
if fs_arr.size():
for item in fs_arr: