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,