shithub: choc

Download patch

ref: 4522420263710b0fc4ad293f42e9608aa45cca4e
parent: 529ad8fd4d3313a2d60dff0c513b621b7219c94f
author: Turo Lamminen <turol@iki.fi>
date: Wed Apr 27 14:14:14 EDT 2022

hexen: Remove set but otherwise unused variable

--- a/src/hexen/in_lude.c
+++ b/src/hexen/in_lude.c
@@ -167,7 +167,6 @@
     int j;
     int oldCluster;
     signed int slaughterfrags;
-    int posnum;
     int slaughtercount;
     int playercount;
     const char *msgLumpName;
@@ -205,7 +204,6 @@
         gametype = DEATHMATCH;
         slaughterboy = 0;
         slaughterfrags = -9999;
-        posnum = 0;
         playercount = 0;
         slaughtercount = 0;
         for (i = 0; i < maxplayers; i++)
@@ -221,7 +219,6 @@
                         totalFrags[i] += players[i].frags[j];
                     }
                 }
-                posnum++;
             }
             if (totalFrags[i] > slaughterfrags)
             {