From ecbd8806e7b7d7133f922dfdfef4270cf6d2fdda Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 30 Jul 2020 02:29:59 +0200 Subject: [PATCH] added some missing guards --- control.cpp | 4 ++-- drawing.cpp | 4 ++-- hypgraph.cpp | 4 +++- mapeditor.cpp | 2 ++ 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/control.cpp b/control.cpp index badebe82..c9045692 100644 --- a/control.cpp +++ b/control.cpp @@ -1299,9 +1299,9 @@ EX void check_orientation() { } transmatrix next_orientation = MirrorX * getOrientation(); transmatrix T = inverse(next_orientation) * last_orientation; - if(mode == 1) unrotate(View), unrotate(cwtV); + if(mode == 1) unrotate(View), unrotate(cwtV.T); relative_matrix = change_geometry(T); - if(mode == 1) rerotate(View), rerotate(cwtV); + if(mode == 1) rerotate(View), rerotate(cwtV.T); if(mode == 2) View = relative_matrix * View, last_orientation = next_orientation; #endif } diff --git a/drawing.cpp b/drawing.cpp index d730e226..a8151217 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -577,13 +577,13 @@ void dqi_poly::gldraw() { if((flags & POLY_CCONVEX) && !(flags & POLY_VCONVEX)) { vector v2(cnt+1); - for(int i=0; i v2(cnt); - for(int i=0; i 1000) continue; + #if MAXMDIM >= 4 if(reg3::ultra_mirror_in()) for(auto& T: cgi.ultra_mirrors) enq(c, optimized_shift(V * T)); - + #endif + for(int i=0; itype; i++) { // note: need do cmove before c.spin cell *c1 = c->cmove(i); diff --git a/mapeditor.cpp b/mapeditor.cpp index f5f860cc..5e3d418c 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -156,6 +156,7 @@ EX namespace mapeditor { EX void clear_dtshapes() { dtshapes.clear(); } EX void draw_dtshapes() { +#if CAP_EDIT for(auto& shp: dtshapes) { if(shp == nullptr) continue; auto& sh = *shp; @@ -179,6 +180,7 @@ EX namespace mapeditor { queueline(T * ypush0(-.1), T * ypush0(.1), dtcolor); } } +#endif } /** dtshapes takes ownership of sh */