Commit 0e0d3a5d35128e133733d5402ee9db9f5404faef

Authored by DarkGod
1 parent 0e55edb4

Fixed log fade

... ... @@ -214,7 +214,7 @@ function _M:display()
214 214 self.cache[tstr] = gen
215 215 end
216 216 for i = #gen, 1, -1 do
217   - self.dlist[#self.dlist+1] = {item=gen[i], date=math.max(self.log.reset_fade or self.log[z].timestamp, self.log[z].timestamp), url=self.log[z].url}
  217 + self.dlist[#self.dlist+1] = {item=gen[i], date=self.log[z].reset_fade or self.log[z].timestamp, url=self.log[z].url}
218 218 h = h + self.fh
219 219 if h > self.h - self.fh then stop=true break end
220 220 end
... ... @@ -282,5 +282,7 @@ function _M:resetFade()
282 282 local log = self.log
283 283
284 284 -- Reset fade
285   - log.reset_fade = core.game.getTime()
  285 + for i = 1,#log do
  286 + log[i].reset_fade = core.game.getTime()
  287 + end
286 288 end
... ...
... ... @@ -718,7 +718,7 @@ function _M:display()
718 718 for i = #gen, 1, -1 do
719 719 gen[i].login = log[z].login
720 720 gen[i].extra_data = log[z].extra_data
721   - self.dlist[#self.dlist+1] = {item=gen[i], date=math.max(log.reset_fade or log[z].timestamp, log[z].timestamp), src=log[z]}
  721 + self.dlist[#self.dlist+1] = {item=gen[i], date=log[z].reset_fade or log[z].timestamp, src=log[z]}
722 722 h = h + self.fh
723 723 if h > self.h - self.fh - (self.do_display_chans and self.fh or 0) then stop=true break end
724 724 end
... ... @@ -805,5 +805,7 @@ function _M:resetFade()
805 805 if self.channels[self.cur_channel] then log = self.channels[self.cur_channel].log end
806 806
807 807 -- Reset fade
808   - log.reset_fade = core.game.getTime()
  808 + for i = 1,#log do
  809 + log[i].reset_fade = core.game.getTime()
  810 + end
809 811 end
... ...