From 0dc2d349e29f6bf86ddd22aaff696a624657aba8 Mon Sep 17 00:00:00 2001 From: lL1l1 <82986251+lL1l1@users.noreply.github.com> Date: Fri, 26 Jan 2024 10:15:20 -0800 Subject: [PATCH] Revert "Hide disabled weapons on range overlay" This reverts commit fa3d50110cee4a5406db9334bb634b481dd1789c. --- lua/sim/weapon.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lua/sim/weapon.lua b/lua/sim/weapon.lua index 428d2838819..183f4bb9070 100644 --- a/lua/sim/weapon.lua +++ b/lua/sim/weapon.lua @@ -682,21 +682,15 @@ Weapon = ClassWeapon(WeaponMethods) { SetWeaponEnabled = function(self, enable) if not IsDestroyed(self) then if not enable then - self:ChangeMaxRadius(0) - self:ChangeMinRadius(0) self:SetEnabled(enable) return end - local Max = self.Blueprint.MaxRadius - local Min = self.Blueprint.MinRadius or 0 local enabledByEnh = self.Blueprint.EnabledByEnhancement if enabledByEnh then local enhancements = SimUnitEnhancements[self.unit.EntityId] if enhancements then for _, enh in enhancements do if enh == enabledByEnh then - self:ChangeMaxRadius(Max) - self:ChangeMinRadius(Min) self:SetEnabled(enable) return end @@ -705,8 +699,6 @@ Weapon = ClassWeapon(WeaponMethods) { -- enhancement needed, but doesn't have it; don't allow weapon to be enabled return end - self:ChangeMaxRadius(Max) - self:ChangeMinRadius(Min) self:SetEnabled(enable) end end,