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

This commit is contained in:
Zeno Rogue 2019-01-03 02:00:15 +01:00
parent 7c84d2e554
commit 16e29c7907
1 changed files with 2 additions and 1 deletions

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);