mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
fixed the donut view
This commit is contained in:
parent
51daac745f
commit
3d306c6aa5
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user