From 9547fe6bd621ed753ff4f11e02a4adcb808ae649 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 4 Apr 2018 00:14:28 +0200 Subject: [PATCH] limited distlimit to 30 --- whirl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/whirl.cpp b/whirl.cpp index 724bb583..9274ff58 100644 --- a/whirl.cpp +++ b/whirl.cpp @@ -267,6 +267,8 @@ namespace whirl { // ispin = rspintox(next); alpha = -atan2(next[1], next[0]); base_distlimit = (base_distlimit + log(scale) / log(2.618)) / scale; + if(base_distlimit > 30) + base_distlimit = 30; } else { scale = 1;