1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-09 15:39:55 +00:00

ray:: fixed ray_kleinize_twisted for nil to return correct coordinates for top/bottom

This commit is contained in:
Zeno Rogue 2024-06-18 11:21:59 +02:00
parent 4e090ed365
commit 1d9760e41c

View File

@ -891,7 +891,7 @@ hyperpoint ray_kleinize_twisted(hyperpoint h, int ks, int id) {
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;