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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user