]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
remove unused variables
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Oct 2004 09:57:09 +0000 (09:57 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Oct 2004 09:57:09 +0000 (09:57 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4672 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 12efae46beb787ed582d8ce18fc44e577ce6778e..d861278a196c1b384e6822f9fe3aa20e869a020a 100644 (file)
--- a/host.c
+++ b/host.c
@@ -404,10 +404,6 @@ if (crash = true), don't bother sending signofs
 */
 void SV_DropClient(qboolean crash)
 {
-       int saveSelf;
-       int i;
-       client_t *client;
-
        Con_Printf("Client \"%s\" dropped\n", host_client->name);
 
        // send any final messages (don't check for errors)
@@ -431,7 +427,7 @@ void SV_DropClient(qboolean crash)
                {
                        // call the prog function for removing a client
                        // this will set the body to a dead frame, among other things
-                       saveSelf = pr_global_struct->self;
+                       int saveSelf = pr_global_struct->self;
                        pr_global_struct->self = EDICT_TO_PROG(host_client->edict);
                        PR_ExecuteProgram(pr_global_struct->ClientDisconnect, "QC function ClientDisconnect is missing");
                        pr_global_struct->self = saveSelf;