shithub: choc

Download patch

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

strife: Remove set but otherwise unused variable

--- a/src/strife/hu_stuff.c
+++ b/src/strife/hu_stuff.c
@@ -534,13 +534,8 @@
     static boolean      altdown = false;
     unsigned char       c;
     int                 i;
-    int                 numplayers;
     
     static int          num_nobrainers = 0;
-
-    numplayers = 0;
-    for (i=0 ; i<MAXPLAYERS ; i++)
-        numplayers += playeringame[i];
 
     if (ev->data1 == KEY_RSHIFT)
     {