mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
Fix: Handle moving normal enemies
- Add option to disable swipe predict
This commit is contained in:
@@ -129,9 +129,10 @@ class Camera(MapOperation):
|
||||
raise e
|
||||
|
||||
if self._prev_view is not None and np.linalg.norm(self._prev_swipe) > 0:
|
||||
swipe = self._prev_view.predict_swipe(self.view)
|
||||
if swipe is not None:
|
||||
self._prev_swipe = swipe
|
||||
if self.config.MAP_SWIPE_PREDICT:
|
||||
swipe = self._prev_view.predict_swipe(self.view)
|
||||
if swipe is not None:
|
||||
self._prev_swipe = swipe
|
||||
self.camera = tuple(np.add(self.camera, self._prev_swipe))
|
||||
self._prev_view = None
|
||||
self._prev_swipe = None
|
||||
|
||||
Reference in New Issue
Block a user