mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 23:10:26 +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];
|
||||
|
||||
if(1) {
|
||||
hyperpoint hp = ct.torus_to_s4(h);
|
||||
|
||||
USING_NATIVE_GEOMETRY;
|
||||
hyperpoint hp = ct.torus_to_s4(h);
|
||||
|
||||
/* spherical coordinates are already good, otherwise... */
|
||||
|
||||
@ -464,6 +463,8 @@ EX void buildTorusRug() {
|
||||
|
||||
if(hyperbolic)
|
||||
hp = perspective_to_space(hp, 1, gcHyperbolic);
|
||||
|
||||
r->native = hp;
|
||||
}
|
||||
|
||||
r->valid = true;
|
||||
|
Loading…
Reference in New Issue
Block a user