mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-22 00:10:25 +00:00
more eqmatrix precision in raycaster
This commit is contained in:
parent
5c21b64060
commit
5de7eb2bb2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user