Open the cockpit on a tracked Navara aircraft

This commit is contained in:
German Khokhlov committed 2026-11-02 22:04:23 +04:00
1 parent 8b179a7e01
commit 2087b55b47
19 files changed
+142 -65

No files matched your search

+9
View File
@@ -587,3 +587,12 @@ test('session bookkeeping ignores programmatic origins, non-visibility events, a
}), false);
assert.equal(snapshot.userAdded.size, 0);
});
test('direct aircraft entry on Navara needs an enabled feed and an idle Context', () => {
const input = { standaloneAircraft: true, contextMode: null, flightsEnabled: true };
assert.equal(cockpitEntryAllowed(input), true);
assert.equal(cockpitEntryAllowed({ ...input, flightsEnabled: false, militaryEnabled: true }), true);
assert.equal(cockpitEntryAllowed({ ...input, flightsEnabled: false }), false);
assert.equal(cockpitEntryAllowed({ ...input, contextModeChanging: true }), false);
assert.equal(cockpitEntryAllowed({ ...input, contextMode: 'space-missions' }), false);
});