fixed some bugs with sphere embedded in product

This commit is contained in:
Zeno Rogue 2022-12-08 21:36:32 +01:00
parent 689f64ed98
commit d334062656
2 changed files with 2 additions and 2 deletions

View File

@ -769,7 +769,7 @@ EX shiftmatrix face_the_player(const shiftmatrix V) {
return shiftless(cspin90(1, 2) * lrspintox(cspin90(2, 1) * uh) * xpush(hdist0(uh)) * cspin90(0, 2) * spin270());
}
#endif
if(embedded_plane && msphere) return shiftless(map_relative_push(unshift(V * zpush0(1))) * zpush(-1));
if(embedded_plane && msphere && !sphere && !gproduct) return shiftless(map_relative_push(unshift(V * zpush0(1))) * zpush(-1));
return rgpushxto0(tC0(V));
}

View File

@ -1902,7 +1902,7 @@ EX bool keep_vertical() {
EX hyperpoint vertical_vector() {
auto& ds = downseek;
if(msphere && !sphere && vid.fixed_yz) {
if(msphere && !sphere && !gproduct && vid.fixed_yz) {
hyperpoint h = get_view_orientation() * C0;
if(vid.wall_height > 0) h = -h;
return h;