mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-05 07:40:12 +08:00
Update PlayerPatch.cs
修复同时开启新旧算法的情况。
This commit is contained in:
@@ -760,11 +760,17 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private static bool PreCheckAndRefreshTarget(Player player)
|
private static bool PreCheckAndRefreshTarget(Player player)
|
||||||
{
|
{
|
||||||
if (! UseNewNavigationAlgorithm.Value || AutoNavigationEnabled.Value)
|
if (! UseNewNavigationAlgorithm.Value)
|
||||||
{
|
{
|
||||||
StopAutoNavigation( );
|
StopAutoNavigation( );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (AutoNavigationEnabled.Value)
|
||||||
|
{
|
||||||
|
UseNewNavigationAlgorithm.Value = false;
|
||||||
|
StopAutoNavigation( );
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (IsEnable is not true)
|
if (IsEnable is not true)
|
||||||
return true;
|
return true;
|
||||||
if (player.mecha.thrusterLevel < 2)
|
if (player.mecha.thrusterLevel < 2)
|
||||||
@@ -1361,4 +1367,4 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user