Normand Briere
2019-06-09 cd87df088b1850ba0c90beb6c866c443e4eaf3b9
RandomNode.java
....@@ -27,7 +27,7 @@
2727
2828 public int size()
2929 {
30
- if (CameraPane.RANDOM)
30
+ if (CameraPane.SWITCH)
3131 {
3232 if (super.size() > 0)
3333 return 1;
....@@ -59,14 +59,14 @@
5959
6060 public Object3D reserve(int i)
6161 {
62
- if (!CameraPane.RANDOM)
62
+ if (!CameraPane.SWITCH)
6363 return super.reserve(i);
6464
6565 //assert(rnd == -1);
6666 // if (!link2master && rnd != -1)
6767 // new Exception().printStackTrace();
6868
69
- if (link2master && rnd != -1) // freeze current value
69
+ if (!random && rnd != -1) // freeze current value
7070 return super.reserve(rnd);
7171
7272 if (firstchoice == 0)
....@@ -95,7 +95,7 @@
9595
9696 //(int)(Math.random()*super.size());
9797 //globalcount++;
98
- gcount += GraphreeD.mix3(rnd+12345,firstchoice*12345,gcount);
98
+ gcount += Grafreed.mix3(rnd+12345,firstchoice*12345,gcount);
9999
100100 gcount &= 0x7fffffff;
101101
....@@ -126,7 +126,7 @@
126126
127127 public void release(int i)
128128 {
129
- if (!CameraPane.RANDOM)
129
+ if (!CameraPane.SWITCH)
130130 {
131131 super.release(i);
132132 return;
....@@ -142,7 +142,7 @@
142142 super.get(rnd).count++;
143143 //assert (child.count >= 0);
144144
145
- if (!link2master) // volatile value
145
+ if (random) // volatile value
146146 rnd = -1;
147147 }
148148