1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 22:08:20 +08:00

Fix: center_offset hasn't been calculated if map detection failed

This commit is contained in:
LmeSzinc
2024-05-19 23:06:52 +08:00
parent 2252267d9e
commit 65fe0c1ebd

View File

@@ -299,6 +299,8 @@ class Camera(MapOperation):
# _update_view()
try:
success = self._update_view()
if not success:
continue
logger.attr('view.center_offset', self.view.center_offset)
if wait_swipe and not swipe_wait_timeout.reached() and success:
# If first screenshot is still prev view