Регрессия. Лишние запросы плиток на сервер карт

This commit is contained in:
sasha80
2026-01-23 16:09:55 +03:00
parent abfb98db46
commit c7fd49eead

View File

@@ -374,7 +374,7 @@ func _process(delta) -> void:
func process_online(result):
# ERROR: res://scenes/tilemap/tilemap.gd:396 - Invalid access to property or key 'online' on a base object of type 'Nil'.
var unit_instance: = network.get_unit_instance('уарэп-карта')
if not unit_instance: return
if not unit_instance: return true
if result != HTTPRequest.RESULT_SUCCESS:
if unit_instance.online:
@@ -394,9 +394,8 @@ func _response(result, code, _headers: Array, body: PackedByteArray, req, tile:
remove_child(req)
req.queue_free()
if process_online(result):
if not process_online(result):
_queue[tile.i] = tile
else:
return
if code == 404: