mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-30 01:07:57 +00:00
fixed the donut view
This commit is contained in:
5
rug.cpp
5
rug.cpp
@@ -445,9 +445,8 @@ EX void buildTorusRug() {
|
|||||||
r->y1 = onscreen[1];
|
r->y1 = onscreen[1];
|
||||||
|
|
||||||
if(1) {
|
if(1) {
|
||||||
hyperpoint hp = ct.torus_to_s4(h);
|
|
||||||
|
|
||||||
USING_NATIVE_GEOMETRY;
|
USING_NATIVE_GEOMETRY;
|
||||||
|
hyperpoint hp = ct.torus_to_s4(h);
|
||||||
|
|
||||||
/* spherical coordinates are already good, otherwise... */
|
/* spherical coordinates are already good, otherwise... */
|
||||||
|
|
||||||
@@ -464,6 +463,8 @@ EX void buildTorusRug() {
|
|||||||
|
|
||||||
if(hyperbolic)
|
if(hyperbolic)
|
||||||
hp = perspective_to_space(hp, 1, gcHyperbolic);
|
hp = perspective_to_space(hp, 1, gcHyperbolic);
|
||||||
|
|
||||||
|
r->native = hp;
|
||||||
}
|
}
|
||||||
|
|
||||||
r->valid = true;
|
r->valid = true;
|
||||||
|
Reference in New Issue
Block a user