1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed singular matrix in raywall

This commit is contained in:
Zeno Rogue 2019-10-27 00:57:06 +02:00
parent e9ea32645c
commit 41107f13d6

View File

@ -765,8 +765,7 @@ void geometry_information::make_wall(int id, vector<hyperpoint> vertices, vector
hyperpoint v2 = vertices[(a+1)%n]; hyperpoint v2 = vertices[(a+1)%n];
if(!triangles || (a%6 == 1)) { if(!triangles || (a%6 == 1)) {
transmatrix T = build_matrix(ray_kleinize(v1, id), ray_kleinize(v2, id), ray_kleinize(ocenter, id), point3(.1,.2,.3)); transmatrix T = build_matrix(ray_kleinize(v1, id), ray_kleinize(v2, id), ray_kleinize(ocenter, id), point31(.11,.19,.3));
println(hlog, "id = ", id, " iT = ", T);
T = inverse(T); T = inverse(T);
raywall.push_back(T); raywall.push_back(T);
} }