From 00b601b1de3deadde09e4b871f3c9805b220c97a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 11 May 2019 15:13:55 +0200 Subject: [PATCH] 2d3d:: no more matrix/unmappable warnings --- floorshapes.cpp | 2 +- hyperpoint.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/floorshapes.cpp b/floorshapes.cpp index f382f5d6..1266b86a 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -184,7 +184,7 @@ void bshape2(hpcshape& sh, PPR prio, int shapeid, matrixlist& m) { int mapped = 0; for(auto& m: matrices) { hyperpoint z = m.first * h; - if(z[0] > -1e-5 && z[1] > -1e-5 && z[2] > -1e-5) { + if(z[0] > -1e-5 && z[1] > -1e-5 && z[GDIM] > -1e-5) { nh = m.second[r] * z, mapped++; } } diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 57c0df5a..3bc302bf 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -427,11 +427,14 @@ void set_column(transmatrix& T, int i, const hyperpoint& H) { } transmatrix build_matrix(hyperpoint h1, hyperpoint h2, hyperpoint h3) { - transmatrix T = Id; + transmatrix T; for(int i=0; i