From 1809cf1622bcfd48a499de2ea0978d0b9252c7dd Mon Sep 17 00:00:00 2001 From: ? Date: Tue, 26 Feb 2019 22:22:21 +0100 Subject: [PATCH] 3d:: sphere:: fixed sphereflip (and thus noshmup movement) --- hyper.h | 2 +- sphere.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hyper.h b/hyper.h index 279554cc..89d3b904 100644 --- a/hyper.h +++ b/hyper.h @@ -3174,7 +3174,7 @@ static const auto SKIPFAC = .4; bool haveMobileCompass(); bool handleCompass(); -inline bool sphereflipped() { return sphere && vid.alpha > 1.1; } +inline bool sphereflipped() { return sphere && vid.alpha > 1.1 && DIM == 3; } int cellcolor(cell *c); transmatrix screenpos(ld x, ld y); extern ld backbrightness; diff --git a/sphere.cpp b/sphere.cpp index d8b9d525..2022aa37 100644 --- a/sphere.cpp +++ b/sphere.cpp @@ -379,6 +379,7 @@ transmatrix relative_matrix(heptagon *h2, heptagon *h1) { } void draw() { + sphereflip = Id; auto m = (hrmap_spherical3*) currentmap; for(int i=0; i<120; i++) if(m->cells[i])