mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
ray:: fixed ray_kleinize_twisted for nil to return correct coordinates for top/bottom
This commit is contained in:
parent
4e090ed365
commit
1d9760e41c
@ -891,7 +891,7 @@ hyperpoint ray_kleinize_twisted(hyperpoint h, int ks, int id) {
|
|||||||
|
|
||||||
if(id < ks) h = spin(-TAU * id / ks) * h;
|
if(id < ks) h = spin(-TAU * id / ks) * h;
|
||||||
|
|
||||||
if(nil) return hyperpoint(x, y, z - x * y / 2, 1);
|
if(nil) return id >= ks ? hyperpoint(x, y, 0, 1) : hyperpoint(x, y, (z - x * y / 2) / nilv::nilwidth / nilv::nilwidth, 1);
|
||||||
|
|
||||||
ld dx, dy;
|
ld dx, dy;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user