mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix(automation): clear stale routes and guard native navigation
Clear auto-construction orders on teardown and planet changes without overwriting manual orders, and reject auto-cruise startup while native autopilot is active. Reduce AGENTS.md to durable project guidance.
This commit is contained in:
1 parent
b5cb9aefb9
commit
fe9c771230
3 files changed
+57
-154
No files matched your search
@@ -484,6 +484,11 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
|
||||
{
|
||||
if (DSPGame.IsMenuDemo || !GameMain.isRunning)
|
||||
return;
|
||||
|
||||
var player = GameMain.mainPlayer;
|
||||
if (player == null || player.navigation.navigating)
|
||||
return;
|
||||
|
||||
// Without this check the next tick would immediately fail to resolve a target and stop
|
||||
// again, producing a "started" and a "stopped" popup back to back.
|
||||
if (!HasNavigationTarget())
|
||||
|
||||
Reference in new issue
Block a user