1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-19 07:20:25 +00:00

3d:: sphere:: fixed sphereflip (and thus noshmup movement)

This commit is contained in:
? 2019-02-26 22:22:21 +01:00 committed by Zeno Rogue
parent 008ef40ea3
commit 1809cf1622
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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])