Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] [已定位具体bug位置] 自动秘境结束战斗时,若角色朝向正好处于正西方,则无法自动转向古树,脚本运行受阻 #608

Closed
TomIsFat opened this issue Sep 11, 2024 · 1 comment
Labels
BUG Something isn't working

Comments

@TomIsFat
Copy link

  • 系统环境 / System Environment:
    Windows10

  • BetterGI版本号 / BetterGI Version:
    0.34.1

  • 问题描述 / Description of the issue:
    自动秘境结束战斗时,若角色朝向正好处于正西方,则无法自动转向古树,会直接卡住不动。
    这时候显示的方向参考线正好为于正西方,是一条水平线。

  • 复现步骤 / Reproduction steps:
    正常刷本,直到结束时角色朝向正好处于正西方(非常难复现)

  • 解决方案
    推测是在转向古树这一步卡住的,因为稍微碰一下鼠标他就继续正常运行了
    所以应该是LockCameraToEastTask这个方法出了问题,没有考虑到角度正好为180度的情况
    修改621行的if (angle < 180)if (angle <= 180)应该可以解决问题

private Task LockCameraToEastTask(CancellationTokenSource cts, Task moveAvatarTask)

@huiyadanli
Copy link
Member

确实有问题,已修正

@huiyadanli huiyadanli added the BUG Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants