From 8a6b7e5752060f260b6b2db00d814b58907f2439 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 12 May 2021 20:14:33 +0200 Subject: [PATCH] fixed linecross -- walls in 2.5D tes appear again --- hyperpoint.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index a234d4d1..3e753a03 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -1560,7 +1560,9 @@ EX hyperpoint linecross(hyperpoint a, hyperpoint b, hyperpoint c, hyperpoint d) hyperpoint res; res[0] = (cay * dcx * bax + a[0] * bay * dcx - c[0] * dcy * bax) / (bay * dcx - dcy * bax); res[1] = (cax * dcy * bay + a[1] * bax * dcy - c[1] * dcx * bay) / (bax * dcy - dcx * bay); - res[2] = 1; + res[2] = 0; + res[3] = 0; + res[GDIM] = 1; return normalize(res); }