1
0
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:
Zeno Rogue 2021-02-06 02:02:55 +01:00
parent 51daac745f
commit 3d306c6aa5

View File

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