1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 11:54:48 +00:00

fixed face_the_player to orient ASCII correctly in VR

This commit is contained in:
Zeno Rogue 2021-05-29 20:31:30 +02:00
parent 8a5b0d981a
commit 874ede836d

View File

@ -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));