From 874ede836d9664abeb2b0a5b02bef33ce619d34d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 29 May 2021 20:31:30 +0200 Subject: [PATCH] fixed face_the_player to orient ASCII correctly in VR --- graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 18201bd8..17bb0518 100644 --- a/graph.cpp +++ b/graph.cpp @@ -718,7 +718,7 @@ EX shiftmatrix face_the_player(const shiftmatrix V) { if(vrhr::enabled) { shiftpoint h = tC0(V); hyperpoint uh = unshift(h); - return shiftless(rspintox(uh) * xpush(hdist0(uh)) * cspin(0, 2, 90*degree)); + return shiftless(cspin(1, 2, 90*degree) * rspintox(cspin(2, 1, 90*degree) * uh) * xpush(hdist0(uh)) * cspin(0, 2, 90*degree) * cspin(1, 0, 90*degree)); } #endif return rgpushxto0(tC0(V));