mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 11:53:35 +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()
|
# _update_view()
|
||||||
try:
|
try:
|
||||||
success = self._update_view()
|
success = self._update_view()
|
||||||
|
if not success:
|
||||||
|
continue
|
||||||
logger.attr('view.center_offset', self.view.center_offset)
|
logger.attr('view.center_offset', self.view.center_offset)
|
||||||
if wait_swipe and not swipe_wait_timeout.reached() and success:
|
if wait_swipe and not swipe_wait_timeout.reached() and success:
|
||||||
# If first screenshot is still prev view
|
# If first screenshot is still prev view
|
||||||
|
|||||||
Reference in New Issue
Block a user