1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-07 04:47:56 +00:00

refactored nilv::get_nsi to fix bugs where nil_structure_index is checked incorrectly

This commit is contained in:
Zeno Rogue
2024-06-18 11:40:22 +02:00
parent 69c2bf9df8
commit 1b51295008
3 changed files with 20 additions and 13 deletions

View File

@@ -923,8 +923,8 @@ hyperpoint ray_kleinize_twisted(hyperpoint h, int ks, int id) {
}
hyperpoint ray_kleinize(hyperpoint h, int id, ld pz) {
if(!mtwisted && nil && nilv::nil_structure_index == 0 && among(id, 2, 5)) h[2] = 0;
if(!mtwisted && nil && nilv::nil_structure_index == 2 && among(id, 6, 7)) h[2] = 0;
if(nilv::get_nsi() == 0 && among(id, 2, 5)) h[2] = 0;
if(nilv::get_nsi() == 2 && among(id, 6, 7)) h[2] = 0;
if(mtwisted) return ray_kleinize_twisted(h, kleinize_sides, id);
#if CAP_BT
if(hyperbolic && bt::in()) {