1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-06 04:17:58 +00:00

nil raytracer now works correctly with hex nil

This commit is contained in:
Zeno Rogue
2024-06-10 01:34:55 +02:00
parent 86c4f18812
commit e2247eaf15
2 changed files with 58 additions and 11 deletions

View File

@@ -878,7 +878,8 @@ void geometry_information::compute_cornerbonus() { }
// Make a wall
hyperpoint ray_kleinize(hyperpoint h, int id, ld pz) {
if(nil && among(id, 2, 5)) h[2] = 0;
if(nil && nilv::nil_structure_index == 0 && among(id, 2, 5)) h[2] = 0;
if(nil && nilv::nil_structure_index == 2 && among(id, 6, 7)) h[2] = 0;
#if CAP_BT
if(hyperbolic && bt::in()) {
// ld co = vid.binary_width / log(2) / 4;