remove unused totalwidth variable from R_InitTextures()

This commit is contained in:
Fabian Greffrath 2022-05-25 11:23:13 +02:00
parent 0b03285275
commit c36c5da9ea

View File

@ -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<<FRACBITS;
texturewidth[i] = texture->width;
totalwidth += texture->width;
}
Z_Free(patchlookup); // killough