From c36c5da9ea2eb5e3e713bcc4cef231e9f69f43a6 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Wed, 25 May 2022 11:23:13 +0200 Subject: [PATCH] remove unused totalwidth variable from R_InitTextures() --- Source/r_data.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Source/r_data.c b/Source/r_data.c index 4f54c50e..d5af4914 100644 --- a/Source/r_data.c +++ b/Source/r_data.c @@ -543,7 +543,6 @@ void R_InitTextures (void) char *names; char *name_p; int *patchlookup; - int totalwidth; int nummappatches; int offset; int maxoff, maxoff2; @@ -626,8 +625,6 @@ void R_InitTextures (void) textureheight = Z_Malloc(numtextures*sizeof*textureheight, PU_STATIC, 0); texturebrightmap = Z_Malloc (numtextures * sizeof(*texturebrightmap), PU_STATIC, 0); - totalwidth = 0; - { // Really complex printing shit... int temp1 = W_GetNumForName("S_START"); int temp2 = W_GetNumForName("S_END") - 1; @@ -720,8 +717,6 @@ void R_InitTextures (void) texturewidthmask[i] = j-1; textureheight[i] = texture->height<width; - - totalwidth += texture->width; } Z_Free(patchlookup); // killough