1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-19 01:20:23 +00:00

improvements to sphere flipping

This commit is contained in:
Zeno Rogue
2022-12-04 14:48:12 +01:00
parent 0770a11164
commit 42f96b768c
5 changed files with 12 additions and 9 deletions

2
vr.cpp
View File

@@ -577,7 +577,7 @@ EX hyperpoint model_location(shiftpoint h, bool& bad) {
h.h = hmd_pre_for[2] * h.h;
eModel md = pmodel_3d_version();
apply_other_model(h, hscr, md);
bad = in_vr_sphere && get_side(hscr) == (sphereflipped() ? -1 : 1);
bad = in_vr_sphere && get_side(hscr) == (sphere_flipped ? -1 : 1);
hscr[3] = 1;
return hscr;