mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-13 06:42:23 +00:00
fix(vessels): hide the ridden ship's trail while its bridge is held
The sprite and card were hidden from the bridge but the selected-vessel trail was not: at sea it ran astern from under the eye, and on a raised river it lay buried under the water. It is now hidden while the bridge holds its ship, keeping its history, and shown again on release.
This commit is contained in:
1 parent
3ce3fce46f
commit
bbe33b48c7
2 files changed
+23
-1
No files matched your search
@@ -563,6 +563,9 @@ export function createQueries({
|
||||
const next = normalizeSelectionMmsi(mmsi);
|
||||
if (state.cockpitSubjectMmsi === next) return true;
|
||||
state.cockpitSubjectMmsi = next;
|
||||
// The ridden ship's trail runs from under the eye: hidden, its history
|
||||
// kept, while the bridge holds the ship it belongs to.
|
||||
state.trail?.setVisible?.(!next || next !== state.trailMmsi);
|
||||
components.rendering.updateVisibility(true);
|
||||
return true;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user