- another shot at fixing the TexCoord errors some users are seeing

This commit is contained in:
Parnic
2009-04-17 14:13:31 +00:00
parent a5a9e8ac4d
commit e115ea51f6

View File

@ -723,7 +723,7 @@ function IceBarElement.prototype:LerpScale(scale)
end
if self.CurrLerpTime < self.moduleSettings.desiredLerpTime then
return self.LastScale + ((self.DesiredScale - self.LastScale) * (self.CurrLerpTime / self.moduleSettings.desiredLerpTime))
return IceHUD:Clamp(self.LastScale + ((self.DesiredScale - self.LastScale) * (self.CurrLerpTime / self.moduleSettings.desiredLerpTime)), 0, 1)
else
return scale
end