diff --git a/raycaster.cpp b/raycaster.cpp index 842eee3f..7c04c5a1 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -501,7 +501,7 @@ void enable_raycaster() { fmain += " int which = -1;\n"; - if(in_e2xe()) fmain += "tangent.w = position.w = 0.;\n"; + if(in_e2xe() && !eyes) fmain += "tangent.w = position.w = 0.;\n"; if(IN_ODS) fmain += " if(go == 0.) {\n" diff --git a/vr.cpp b/vr.cpp index f49c3f79..2cfa8a68 100644 --- a/vr.cpp +++ b/vr.cpp @@ -1329,11 +1329,11 @@ void addconfig() { param_f(vrhr::ui_depth, "vr_ui_depth"); param_f(vrhr::ui_size, "vr_ui_size"); - addsaverenum(vrhr::hsm, "vr_headset_mode") + param_enum(vrhr::hsm, "vr_headset_mode", "vr_headset_mode", vrhr::hsm) ->editable(headset_desc, "VR headset movement", 'h'); - addsaverenum(vrhr::eyes, "vr_eyes_mode"); + param_enum(vrhr::eyes, "vr_eyes_mode", "vr_eyes_mode", vrhr::eyes) ->editable(eyes_desc, "VR binocular vision", 'b'); - addsaverenum(vrhr::cscr, "vr_screen_mode"); + param_enum(vrhr::cscr, "vr_screen_mode", "vr_screen_mode", vrhr::cscr) ->editable(comp_desc, "VR computer screen", 'c'); } auto hookc = addHook(hooks_configfile, 100, addconfig);