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

fixed treasure rendering in euc_in_sph and euc_vertical

This commit is contained in:
Zeno Rogue 2023-01-07 21:49:04 +01:00
parent 14d6e33768
commit 88ca5c920f

View File

@ -774,7 +774,8 @@ EX shiftmatrix face_the_player(const shiftmatrix V) {
if(mproduct) return orthogonal_move(V, cos(ptick(750)) * cgi.plevel / 16); if(mproduct) return orthogonal_move(V, cos(ptick(750)) * cgi.plevel / 16);
if(mhybrid) return V * zpush(cos(ptick(750)) * cgi.plevel / 16); if(mhybrid) return V * zpush(cos(ptick(750)) * cgi.plevel / 16);
transmatrix dummy; /* used only in prod anyways */ transmatrix dummy; /* used only in prod anyways */
if(geom3::euc_in_nil()) return V; if(geom3::euc_vertical()) return V;
if(geom3::euc_in_sph()) return V;
if(nonisotropic && !embedded_plane) return shiftless(spin_towards(unshift(V), dummy, C0, 2, 0)); if(nonisotropic && !embedded_plane) return shiftless(spin_towards(unshift(V), dummy, C0, 2, 0));
#if CAP_VR #if CAP_VR
if(vrhr::enabled) { if(vrhr::enabled) {