]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
eliminated q3meffect_t (now uses q3deffect_t)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 8 Mar 2005 13:16:06 +0000 (13:16 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 8 Mar 2005 13:16:06 +0000 (13:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5059 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c
model_brush.h
model_shared.h

index f85ba91714c02595695fba27fd21550d0cd37a1d..0d5b21df4aa1122e0ed8dd14e9ac42e236695efe 100644 (file)
@@ -3963,7 +3963,7 @@ static void Mod_Q3BSP_LoadBrushes(lump_t *l)
 static void Mod_Q3BSP_LoadEffects(lump_t *l)
 {
        q3deffect_t *in;
-       q3meffect_t *out;
+       q3deffect_t *out;
        int i, n, count;
 
        in = (void *)(mod_base + l->fileofs);
@@ -3981,7 +3981,7 @@ static void Mod_Q3BSP_LoadEffects(lump_t *l)
                n = LittleLong(in->brushindex);
                if (n < 0 || n >= loadmodel->brush.num_brushes)
                        Host_Error("Mod_Q3BSP_LoadEffects: invalid brushindex %i (%i brushes)\n", n, loadmodel->brush.num_brushes);
-               out->brush = loadmodel->brush.data_brushes + n;
+               out->brushindex = n;
                out->unknown = LittleLong(in->unknown);
        }
 }
index fe3adef4ec14a54e88c6f87ea97b1bb8ed047e84..011b44baec6f15762883e4d1a05699e2a7ffbee6 100644 (file)
@@ -134,7 +134,7 @@ typedef struct
 }
 mtexinfo_t;
 
-struct q3meffect_s;
+struct q3deffect_s;
 typedef struct msurface_s
 {
        // bounding box for onscreen checks
@@ -173,7 +173,7 @@ typedef struct msurface_s
        // (only access this if dlightframe is current)
        int dlightbits[8]; // q1bsp
 
-       struct q3meffect_s *effect; // q3bsp
+       struct q3deffect_s *effect; // q3bsp
        // FIXME: collisionmarkframe should be kept in a separate array
        int collisionmarkframe; // q3bsp // don't collide twice in one trace
 }
@@ -593,7 +593,7 @@ typedef struct
 }
 q3dmeshvertex_t;
 
-typedef struct
+typedef struct q3deffect_s
 {
        char shadername[Q3PATHLENGTH];
        int brushindex;
@@ -777,14 +777,6 @@ typedef struct q3mbrushside_s
 }
 q3mbrushside_t;
 
-typedef struct q3meffect_s
-{
-       char shadername[Q3PATHLENGTH];
-       struct q3mbrush_s *brush;
-       int unknown; // 5 or -1
-}
-q3meffect_t;
-
 #define CHECKPVSBIT(pvs,b) ((b) >= 0 ? ((pvs)[(b) >> 3] & (1 << ((b) & 7))) : false)
 #define SETPVSBIT(pvs,b) ((b) >= 0 ? ((pvs)[(b) >> 3] |= (1 << ((b) & 7))) : false)
 #define CLEARPVSBIT(pvs,b) ((b) >= 0 ? ((pvs)[(b) >> 3] &= ~(1 << ((b) & 7))) : false)
index e2071a5175e0fef732031e49acf7b390e9895c4f..3e3e218d126e45b191944caed3d849170192505b 100644 (file)
@@ -320,7 +320,7 @@ typedef struct model_brushq3_s
        int *data_element3i;
 
        int num_effects;
-       q3meffect_t *data_effects;
+       q3deffect_t *data_effects;
 
        // lightmap textures
        int num_lightmaps;