1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-13 17:06:52 +00:00

changed gmatrix to simply use hdist0 instead of case-based

This commit is contained in:
Zeno Rogue 2019-12-06 13:04:57 +01:00
parent 8ce6135599
commit 9ed9c84b33

View File

@ -1693,14 +1693,7 @@ void celldrawer::bookkeeping() {
bool orig = false; bool orig = false;
if(!inmirrorcount) { if(!inmirrorcount) {
transmatrix& gm = gmatrix[c]; transmatrix& gm = gmatrix[c];
orig = orig = (gm[LDIM][LDIM] == 0) || hdist0(tC0(gm)) >= hdist0(tC0(V));
gm[LDIM][LDIM] == 0 ? true :
euclid ? hdist0(tC0(gm)) >= hdist0(tC0(V)) :
in_e2xe() ? hdist0(tC0(gm)) >= hdist0(tC0(V)) :
(nil||sol) ? sqhypot_d(3, tC0(gm)) >= sqhypot_d(3, tC0(V)) :
sphereflipped() ? fabs(gm[LDIM][LDIM]-1) <= fabs(V[LDIM][LDIM]-1) :
fabs(gm[LDIM][LDIM]-1) >= fabs(V[LDIM][LDIM]-1) - 1e-8;
if(orig) gm = V; if(orig) gm = V;
} }
if(just_gmatrix) return; if(just_gmatrix) return;