mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
fixed linecross -- walls in 2.5D tes appear again
This commit is contained in:
1 parent
bdc428e8b1
commit
8a6b7e5752
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user