.. | .. |
---|
27 | 27 | |
---|
28 | 28 | public int size() |
---|
29 | 29 | { |
---|
30 | | - if (CameraPane.RANDOM) |
---|
| 30 | + if (CameraPane.SWITCH) |
---|
31 | 31 | { |
---|
32 | 32 | if (super.size() > 0) |
---|
33 | 33 | return 1; |
---|
.. | .. |
---|
59 | 59 | |
---|
60 | 60 | public Object3D reserve(int i) |
---|
61 | 61 | { |
---|
62 | | - if (!CameraPane.RANDOM) |
---|
| 62 | + if (!CameraPane.SWITCH) |
---|
63 | 63 | return super.reserve(i); |
---|
64 | 64 | |
---|
65 | 65 | //assert(rnd == -1); |
---|
66 | 66 | // if (!link2master && rnd != -1) |
---|
67 | 67 | // new Exception().printStackTrace(); |
---|
68 | 68 | |
---|
69 | | - if (link2master && rnd != -1) // freeze current value |
---|
| 69 | + if (!random && rnd != -1) // freeze current value |
---|
70 | 70 | return super.reserve(rnd); |
---|
71 | 71 | |
---|
72 | 72 | if (firstchoice == 0) |
---|
.. | .. |
---|
95 | 95 | |
---|
96 | 96 | //(int)(Math.random()*super.size()); |
---|
97 | 97 | //globalcount++; |
---|
98 | | - gcount += GrafreeD.mix3(rnd+12345,firstchoice*12345,gcount); |
---|
| 98 | + gcount += Grafreed.mix3(rnd+12345,firstchoice*12345,gcount); |
---|
99 | 99 | |
---|
100 | 100 | gcount &= 0x7fffffff; |
---|
101 | 101 | |
---|
.. | .. |
---|
126 | 126 | |
---|
127 | 127 | public void release(int i) |
---|
128 | 128 | { |
---|
129 | | - if (!CameraPane.RANDOM) |
---|
| 129 | + if (!CameraPane.SWITCH) |
---|
130 | 130 | { |
---|
131 | 131 | super.release(i); |
---|
132 | 132 | return; |
---|
.. | .. |
---|
142 | 142 | super.get(rnd).count++; |
---|
143 | 143 | //assert (child.count >= 0); |
---|
144 | 144 | |
---|
145 | | - if (!link2master) // volatile value |
---|
| 145 | + if (random) // volatile value |
---|
146 | 146 | rnd = -1; |
---|
147 | 147 | } |
---|
148 | 148 | |
---|