removed spow(x, 0); calls, I did them for consistency's sake, but it should be rather obvious how the scaling works anyways
2cd16097
1 file(s) · +3 −3
| 43 | 43 | sum += spow(vratio, i); |
|
| 44 | 44 | mscale = wah / sum; |
|
| 45 | 45 | if(vratio >= 1) |
|
| 46 | - | mmaxtile = bh > (mscale * spow(vratio, 0)); |
|
| 46 | + | mmaxtile = bh > mscale; |
|
| 47 | 47 | else |
|
| 48 | 48 | mmaxtile = bh > (mscale * spow(vratio, n - 1)); |
|
| 49 | 49 | } |
|
| 55 | 55 | sum += spow(vratio, i); |
|
| 56 | 56 | sscale = wah / sum; |
|
| 57 | 57 | if(vratio >= 1) { |
|
| 58 | - | mmaxtile = bh > (mscale * spow(vratio, 0)); |
|
| 59 | - | smaxtile = bh > (sscale * spow(vratio, 0)); |
|
| 58 | + | mmaxtile = bh > mscale; |
|
| 59 | + | smaxtile = bh > sscale; |
|
| 60 | 60 | } |
|
| 61 | 61 | else { |
|
| 62 | 62 | mmaxtile = bh > (mscale * spow(vratio, nmaster - 1)); |
|