shithub: rott

Download patch

ref: d5e6522ef87c2b214f342d476fd8b445e9cba5cb
parent: 94bfab3392221553ac1114794bf8994baaf982cd
author: Marc-Alexandre Espiaut <marcalexandre@member.fsf.org>
date: Tue Jun 5 07:55:26 EDT 2018

Removing unused but set variables in rt_in.c

--- a/rott/rt_in.c
+++ b/rott/rt_in.c
@@ -560,7 +560,6 @@
 {
     word        x, y;
     JoystickDef *def;
-    static longword lasttime;
 
     IN_GetJoyAbs (joy, &x, &y);
     def = JoyDefs + joy;
@@ -611,7 +610,6 @@
     else
         *dy = 0;
 
-    lasttime = GetTicCount();
 }
 
 
@@ -998,8 +996,6 @@
 
     if ((checkcyberman || checkassassin) && (swiftstatus = SWIFT_Initialize ()))
     {
-        int dynamic;
-
         if (checkcyberman)
         {
             CybermanPresent = swiftstatus;
@@ -1010,8 +1006,6 @@
             AssassinPresent = checkassassin & swiftstatus;
             assassinenabled = true;
         }
-
-        dynamic = SWIFT_GetDynamicDeviceData ();
 
         SWIFT_TactileFeedback (40, 20, 20);