vr:: controller ray now extend to the correct distance

This commit is contained in:
Zeno Rogue committed 2020-12-31 19:11:14 +01:00
1 parent 1b976d364b
commit cafc265cc6
4 files changed
+17 -11

No files matched your search

+2 -3
View File
@@ -609,9 +609,8 @@ EX bool need_mouseh = false;
EX void fix_mouseh() {
if(0) ;
#if CAP_VR
else if(vrhr::active() && which_pointer) {
vrhr::compute_point(which_pointer, mouseh, mouseover);
}
else if(vrhr::active() && which_pointer && !vrhr::in_menu())
vrhr::compute_point(which_pointer, mouseh, mouseover, vrhr::pointer_distance);
#endif
else if(!need_mouseh) ;
#if CAP_RUG