mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Unit gets forcefully deselected when hidden
This commit is contained in:
parent
fbab82e4de
commit
22ae882032
@ -686,7 +686,10 @@ export abstract class Unit extends CustomMarker {
|
||||
(this.belongsToCommandedCoalition() || (!this.belongsToCommandedCoalition() && this.#detectionMethods.length == 0))));
|
||||
|
||||
/* Force dead units to be hidden */
|
||||
this.setHidden(hidden || !this.#alive);
|
||||
this.setHidden(hidden || !this.getAlive());
|
||||
|
||||
/* Force hidden units to be unselected */
|
||||
this.setSelected(this.getSelected() && !this.getHidden());
|
||||
}
|
||||
|
||||
setHidden(hidden: boolean) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user