1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-21 08:00:25 +00:00

more eqmatrix precision in raycaster

This commit is contained in:
Zeno Rogue 2021-07-13 17:38:59 +02:00
parent 5c21b64060
commit 5de7eb2bb2

View File

@ -1715,7 +1715,7 @@ struct raycast_map {
if(in_e2xe() && i >= c->type-2)
T = Id;
for(int k=0; k<=isize(ms); k++) {
if(k < isize(ms) && !eqmatrix(ms[k], T)) continue;
if(k < isize(ms) && !eqmatrix(ms[k], T, 1e-5)) continue;
if(k == isize(ms)) ms.push_back(T);
connections[u][2] = (k+.5) / 1024.;
break;