From c00096bd9aa5ef85282fec7a9b1f2e11a8e6ad00 Mon Sep 17 00:00:00 2001 From: PeekabooSteam Date: Thu, 16 Nov 2023 22:26:09 +0000 Subject: [PATCH] Selected units now hidden on request --- client/src/unit/unit.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/unit/unit.ts b/client/src/unit/unit.ts index 764cfc56..5c6e1701 100644 --- a/client/src/unit/unit.ts +++ b/client/src/unit/unit.ts @@ -682,9 +682,7 @@ export abstract class Unit extends CustomMarker { (!this.belongsToCommandedCoalition() && (this.#detectionMethods.length == 0 || (this.#detectionMethods.length == 1 && this.#detectionMethods[0] === RWR))) || /* Hide the unit if grouping is activated, the unit is not the group leader, it is not selected, and the zoom is higher than the grouping threshold */ (getApp().getMap().getVisibilityOptions()[HIDE_GROUP_MEMBERS] && !this.#isLeader && this.getCategory() == "GroundUnit" && getApp().getMap().getZoom() < GROUPING_ZOOM_TRANSITION && - (this.belongsToCommandedCoalition() || (!this.belongsToCommandedCoalition() && this.#detectionMethods.length == 0)))) && - !(this.getSelected() - ); + (this.belongsToCommandedCoalition() || (!this.belongsToCommandedCoalition() && this.#detectionMethods.length == 0)))); /* Force dead units to be hidden */ this.setHidden(hidden || !this.#alive);