mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- cleaned up some code from my fights with SetTexCoord/nan
This commit is contained in:
@ -697,10 +697,6 @@ function IceBarElement.prototype:SetScale(texture, scale)
|
||||
|
||||
self.CurrScale = IceHUD:Clamp(self:LerpScale(scale), 0, 1)
|
||||
|
||||
if not self.currScale or self.currScale == (1/0) or self.currScale == (0/0) then
|
||||
self.currScale = 0
|
||||
end
|
||||
|
||||
if oldScale ~= self.CurrScale then
|
||||
if (self.moduleSettings.side == IceCore.Side.Left) then
|
||||
texture:SetTexCoord(1, 0, 1-self.CurrScale, 1)
|
||||
|
Reference in New Issue
Block a user