From c6527f4b874084ade4d13b64a93a460fe78c4fce Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 16 May 2020 02:13:10 +0200 Subject: [PATCH] fake:: multiple done correctly --- fake.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/fake.cpp b/fake.cpp index 834ab002..ea98b6a3 100644 --- a/fake.cpp +++ b/fake.cpp @@ -8,6 +8,8 @@ EX namespace fake { EX ld scale; + EX bool multiple; + EX eGeometry underlying; EX geometry_information *underlying_cgip; EX hrmap *pmap; @@ -147,11 +149,9 @@ EX namespace fake { return; } - bool bymatrix = true; - dq::visited_c.clear(); dq::visited_by_matrix.clear(); - auto enqueue = (bymatrix ? dq::enqueue_by_matrix_c : dq::enqueue_c); + auto enqueue = (multiple ? dq::enqueue_by_matrix_c : dq::enqueue_c); enqueue(centerover, cview()); while(!dq::drawqueue_c.empty()) { @@ -285,6 +285,11 @@ EX void compute_scale() { if(abs(good - around) < 1e-6) good = around; + multiple = false; + for(int k=1; k<10; k++) + if(abs(around - underlying_cgip->loop) < 1e-6) + multiple = true; + if(around == good) { ginf[gFake].g = WDIM == 3 ? giEuclid3 : giEuclid2; }