shithub: rott

Download patch

ref: d06c480dcb598d3dd925b2c95cc8af6a28630499
parent: aa6fbb27fa643d09277a5c411256accb884c1038
author: levesqu8 <levesqu8@msu.edu>
date: Mon Dec 4 16:32:34 EST 2017

added hold shift to walk when autorun is on

--- a/rott/rt_playr.c
+++ b/rott/rt_playr.c
@@ -2918,8 +2918,8 @@
     controlbuf[0] = controlbuf[1] = controlbuf[2] = 0;
     CYBERLOOKUP = CYBERLOOKDOWN = false;
 
-    if (gamestate.autorun==1)
-        buttonpoll[bt_run] = true;
+    //if (gamestate.autorun==1)
+        //buttonpoll[bt_run] = true;
 
 
 //
@@ -2926,6 +2926,19 @@
 // get button states
 //
     PollKeyboardButtons ();
+    
+    if (gamestate.autorun == 1)
+    {
+        if (buttonpoll[bt_run])
+        {
+            buttonpoll[bt_run] = false;
+        }
+        else
+        {
+            buttonpoll[bt_run] = true;
+            
+        }
+    }
 
     if (mouseenabled && !cybermanenabled)
         PollMouseButtons ();