- more minor cleanups before tagging a new release version

This commit is contained in:
Parnic
2009-04-19 00:49:33 +00:00
parent 9a8d5317c9
commit 0a0a816701
9 changed files with 13 additions and 13 deletions

View File

@ -73,7 +73,7 @@ function MirrorBar.prototype:OnUpdate(elapsed)
self.value = self.value + (self.timerScale * elapsed * 1000)
scale = self.maxValue > 0 and self.value / self.maxValue or 0
scale = self.maxValue ~= 0 and self.value / self.maxValue or 0
if (scale < 0) then -- lag compensation
scale = 0