shithub: rott

Download patch

ref: 0c0f16dad8c0c9288296dae9dc55fc5a3602e7ab
parent: 7a4107f146626eb7577ba22470815377e9d57985
author: LTCHIPS <ltchips994@gmail.com>
date: Tue Jun 12 20:16:05 EDT 2018

removed obsolete VR code. No, not Occulus you silly goose.

--- a/src/rt_playr.c
+++ b/src/rt_playr.c
@@ -2336,42 +2336,6 @@
 
 //******************************************************************************
 //
-// StartVRFeedback
-//
-//******************************************************************************
-
-void StartVRFeedback (int guntype)
-{
-    STUB_FUNCTION;
-}
-
-//******************************************************************************
-//
-// StopVRFeedback
-//
-//******************************************************************************
-
-void StopVRFeedback (void)
-{
-    STUB_FUNCTION;
-}
-
-//******************************************************************************
-//
-// PollVirtualReality
-//
-//******************************************************************************
-
-#define VR_BUTTON(x) ((vr_buttons>>x) & 1)
-
-void PollVirtualReality (void)
-{
-    STUB_FUNCTION;
-}
-
-
-//******************************************************************************
-//
 // PollMove ()
 //
 //******************************************************************************
@@ -2591,9 +2555,6 @@
 
     PollKeyboardMove ();
 
-    if (vrenabled)
-        PollVirtualReality ();
-
     PollMove ();
 
     buttonbits = 0;
@@ -4448,10 +4409,6 @@
         switch (cur->attack)
         {
         case reset:
-            if (vrenabled && (ob==player))
-            {
-                StopVRFeedback();
-            }
             ob->flags &= ~FL_FULLLIGHT;
             if (pstate->ammo)
             {
@@ -4504,10 +4461,6 @@
             break;
 
         case reset2:
-            if (vrenabled && (ob==player))
-            {
-                StopVRFeedback();
-            }
             ob->flags &= ~FL_FULLLIGHT;
             if (pstate->buttonstate[bt_attack] && pstate->ammo)
             {
@@ -4529,10 +4482,6 @@
 
 
         case at_pulltrigger:
-            if (vrenabled && (ob==player))
-            {
-                StartVRFeedback(1);
-            }
             ob->flags |= FL_FULLLIGHT;
 
 #if (SHAREWARE == 0)
@@ -4558,10 +4507,6 @@
                 return;
             }
 
-            if (vrenabled && (ob==player))
-            {
-                StartVRFeedback(1);
-            }
             ob->flags |= FL_FULLLIGHT;
             if (ob==player)
                 SetIllumination(2);