From 69c2bf9df84ab1c2c3ee6c286a2fb93538b307c5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 18 Jun 2024 11:36:31 +0200 Subject: [PATCH] fixed a bug with some walls in twisted nil --- polygons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polygons.cpp b/polygons.cpp index 18573cd5..fb8054b1 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -923,8 +923,8 @@ hyperpoint ray_kleinize_twisted(hyperpoint h, int ks, int id) { } hyperpoint ray_kleinize(hyperpoint h, int id, ld pz) { - if(nil && nilv::nil_structure_index == 0 && among(id, 2, 5)) h[2] = 0; - if(nil && nilv::nil_structure_index == 2 && among(id, 6, 7)) h[2] = 0; + if(!mtwisted && nil && nilv::nil_structure_index == 0 && among(id, 2, 5)) h[2] = 0; + if(!mtwisted && nil && nilv::nil_structure_index == 2 && among(id, 6, 7)) h[2] = 0; if(mtwisted) return ray_kleinize_twisted(h, kleinize_sides, id); #if CAP_BT if(hyperbolic && bt::in()) {