mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-30 23:46:02 +00:00
revert changes from other PR
This commit is contained in:
@@ -40,10 +40,7 @@ export class SAMRadiusLayer implements Layer {
|
|||||||
|
|
||||||
private handleToggleStructure(e: ToggleStructureEvent) {
|
private handleToggleStructure(e: ToggleStructureEvent) {
|
||||||
const types = e.structureTypes;
|
const types = e.structureTypes;
|
||||||
this.hoveredShow =
|
this.hoveredShow = !!types && types.indexOf(UnitType.SAMLauncher) !== -1;
|
||||||
!!types &&
|
|
||||||
(types.indexOf(UnitType.SAMLauncher) !== -1 ||
|
|
||||||
types.indexOf(UnitType.City) !== -1);
|
|
||||||
this.updateVisibility();
|
this.updateVisibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +83,6 @@ export class SAMRadiusLayer implements Layer {
|
|||||||
this.ghostShow =
|
this.ghostShow =
|
||||||
this.uiState.ghostStructure === UnitType.MissileSilo ||
|
this.uiState.ghostStructure === UnitType.MissileSilo ||
|
||||||
this.uiState.ghostStructure === UnitType.SAMLauncher ||
|
this.uiState.ghostStructure === UnitType.SAMLauncher ||
|
||||||
this.uiState.ghostStructure === UnitType.City ||
|
|
||||||
this.uiState.ghostStructure === UnitType.AtomBomb ||
|
this.uiState.ghostStructure === UnitType.AtomBomb ||
|
||||||
this.uiState.ghostStructure === UnitType.HydrogenBomb;
|
this.uiState.ghostStructure === UnitType.HydrogenBomb;
|
||||||
this.updateVisibility();
|
this.updateVisibility();
|
||||||
|
|||||||
Reference in New Issue
Block a user