Merge remote-tracking branch 'sasha80/master'
This commit is contained in:
@@ -374,7 +374,7 @@ func _process(delta) -> void:
|
|||||||
func process_online(result):
|
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'.
|
# 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('уарэп-карта')
|
var unit_instance: = network.get_unit_instance('уарэп-карта')
|
||||||
if not unit_instance: return
|
if not unit_instance: return true
|
||||||
|
|
||||||
if result != HTTPRequest.RESULT_SUCCESS:
|
if result != HTTPRequest.RESULT_SUCCESS:
|
||||||
if unit_instance.online:
|
if unit_instance.online:
|
||||||
@@ -394,9 +394,8 @@ func _response(result, code, _headers: Array, body: PackedByteArray, req, tile:
|
|||||||
remove_child(req)
|
remove_child(req)
|
||||||
req.queue_free()
|
req.queue_free()
|
||||||
|
|
||||||
if process_online(result):
|
if not process_online(result):
|
||||||
_queue[tile.i] = tile
|
_queue[tile.i] = tile
|
||||||
else:
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if code == 404:
|
if code == 404:
|
||||||
|
|||||||
Reference in New Issue
Block a user