From: havoc Date: Sun, 6 Mar 2005 19:20:31 +0000 (+0000) Subject: removed texture_t->number and q3mtexture_t->number X-Git-Tag: xonotic-v0.1.0preview~5123 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=8f66daf5086f6614cf0e0ab9f8d3d839756f6ee4 removed texture_t->number and q3mtexture_t->number git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5045 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 44c41917..1c59cf95 100644 --- a/model_brush.c +++ b/model_brush.c @@ -986,7 +986,6 @@ static void Mod_Q1BSP_LoadTextures(lump_t *l) // fill out all slots with notexture for (i = 0, tx = loadmodel->brushq1.textures;i < loadmodel->brushq1.numtextures;i++, tx++) { - tx->number = i; strcpy(tx->name, "NO TEXTURE FOUND"); tx->width = 16; tx->height = 16; @@ -3696,7 +3695,6 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l) for (i = 0;i < count;i++, in++, out++) { - out->number = i; strlcpy (out->name, in->name, sizeof (out->name)); out->surfaceflags = LittleLong(in->surfaceflags); out->supercontents = Mod_Q3BSP_SuperContentsFromNativeContents(loadmodel, LittleLong(in->contents)); diff --git a/model_brush.h b/model_brush.h index c7898863..53567682 100644 --- a/model_brush.h +++ b/model_brush.h @@ -86,9 +86,6 @@ typedef struct texture_s // SURF_ flags unsigned int flags; - // position in the model's textures array - int number; - // type of rendering (SURFRENDER_ value) int rendertype; @@ -784,12 +781,7 @@ typedef struct q3mtexture_s int surfaceparms; int textureflags; - int number; skinframe_t skin; - - int numfaces; - struct q3msurface_s **facelist; - int *facenumlist; } q3mtexture_t;