Рефактор.

This commit is contained in:
sasha80
2025-06-06 16:24:50 +03:00
parent 54441558e9
commit 03a91989db
2 changed files with 7 additions and 22 deletions

View File

@@ -233,9 +233,9 @@ func poll_receive_udp(sock: Socket) -> bool:
units[addr_port].parse(data, tick)
continue
if unit_keys.has(port):
var key = unit_keys[port]
if units.has(key):
units[key].parse(data, tick)
var key1 = unit_keys[port]
if units.has(key1):
units[key1].parse(data, tick)
continue
port = sock.get_local_port()
var key = ['*', port]