Awn

Comment 2 for bug 130849

Revision history for this message
Garoth (garoth) wrote :

Ok, I may or may not fix this one. Feel free to take it if you want. I'll look at it later if no one does. Here is what needs be done though.

1) Set the speed of the refresh to 30 (from 40)
2) Set the max height to 15 (from 14)
3) Change += 1 to "= log10(<an incrementing number, which increases by 1 every run through the function, during that launch>) * 15;"
4) Change -= 1 to "= log10(<an decrementing number, which decreases by 1 every run through the function, during that launch>) * 15;"

In short...

(int) log(1)*15 = 0
(int) log(2)*15 = 4
(int) log(3)*15 = 7
(int) log(4)*15 = 9
(int) log(5)*15 = 10
(int) log(6)*15 = 11
(int) log(7)*15 = 12
(int) log(8)*15 = 13
(int) log(9)*15 = 14
(int) log(10)*15 = 15 exactly
(int) log(9)*15 = 14
... and proceed back down.

Really a cleaver way to do this. I'm impressed :) Why this was not done throughout, I do not know, aside from the fact that you need something like a global variable or another variable in privs to make it work in this case.