about summary refs log tree commit diff stats
path: root/apworld
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-10-05 12:06:00 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-10-05 12:06:00 -0400
commitff125bf97e26eecff6e7cbf89f55ffcf6c222fce (patch)
tree69d5d4f1259c1aa79c6d94c60140b7f3669358d6 /apworld
parent86a92ea239adf0c462009096e91e06c1c121ade2 (diff)
downloadlingo2-archipelago-ff125bf97e26eecff6e7cbf89f55ffcf6c222fce.tar.gz
lingo2-archipelago-ff125bf97e26eecff6e7cbf89f55ffcf6c222fce.tar.bz2
lingo2-archipelago-ff125bf97e26eecff6e7cbf89f55ffcf6c222fce.zip
Don't resend confirmed checked locations
Diffstat (limited to 'apworld')
-rw-r--r--apworld/client/client.gd2
-rw-r--r--apworld/client/manager.gd3
2 files changed, 4 insertions, 1 deletions
diff --git a/apworld/client/client.gd b/apworld/client/client.gd index e25ad4b..a0abee9 100644 --- a/apworld/client/client.gd +++ b/apworld/client/client.gd
@@ -108,7 +108,7 @@ func _on_web_socket_server_message_received(_peer_id: int, packet: String) -> vo
108 108
109 _checked_locations = [] 109 _checked_locations = []
110 for location in message["checked_locations"]: 110 for location in message["checked_locations"]:
111 _checked_locations.append(int(message["checked_locations"])) 111 _checked_locations.append(int(location))
112 112
113 client_connected.emit(_slot_data) 113 client_connected.emit(_slot_data)
114 114
diff --git a/apworld/client/manager.gd b/apworld/client/manager.gd index 0d5a5aa..b13c1bd 100644 --- a/apworld/client/manager.gd +++ b/apworld/client/manager.gd
@@ -503,6 +503,9 @@ func start_batching_locations():
503 503
504 504
505func send_location(loc_id): 505func send_location(loc_id):
506 if client._checked_locations.has(loc_id):
507 return
508
506 if _batch_locations: 509 if _batch_locations:
507 _held_locations.append(loc_id) 510 _held_locations.append(loc_id)
508 else: 511 else: