brownian:: use getDistLimit()*2/3/4 instead of 12/20/30

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:38:38 +02:00
1 parent 7c84d2e554
commit 16e29c7907
1 file changed
+2 -1
+2 -1
View File
@@ -35,9 +35,10 @@ namespace brownian {
}
void recurse(cell *c, bool fat, int fatten_limit = 0) {
int dl = getDistLimit();
while(true) {
totalsteps++;
if(!fatten_limit && celldist(c) >= (fat ? 30 : ISMOBILE ? 12 : 20) + celldist(cwt.at)) {
if(!fatten_limit && celldist(c) >= dl * (fat ? 4 : ISMOBILE ? 2 : 3) + celldist(cwt.at)) {
cell *c1 = c;
while(true) {
cell *c2 = ts::left_parent(c1, celldist);