mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-19 15:20:27 +00:00
3d:: sphere:: fixed sphereflip (and thus noshmup movement)
This commit is contained in:
parent
008ef40ea3
commit
1809cf1622
2
hyper.h
2
hyper.h
@ -3174,7 +3174,7 @@ static const auto SKIPFAC = .4;
|
|||||||
bool haveMobileCompass();
|
bool haveMobileCompass();
|
||||||
bool handleCompass();
|
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);
|
int cellcolor(cell *c);
|
||||||
transmatrix screenpos(ld x, ld y);
|
transmatrix screenpos(ld x, ld y);
|
||||||
extern ld backbrightness;
|
extern ld backbrightness;
|
||||||
|
@ -379,6 +379,7 @@ transmatrix relative_matrix(heptagon *h2, heptagon *h1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void draw() {
|
void draw() {
|
||||||
|
sphereflip = Id;
|
||||||
auto m = (hrmap_spherical3*) currentmap;
|
auto m = (hrmap_spherical3*) currentmap;
|
||||||
|
|
||||||
for(int i=0; i<120; i++) if(m->cells[i])
|
for(int i=0; i<120; i++) if(m->cells[i])
|
||||||
|
Loading…
Reference in New Issue
Block a user