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);
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);
}
}
}
mtexinfo_t;
-struct q3meffect_s;
+struct q3deffect_s;
typedef struct msurface_s
{
// bounding box for onscreen checks
// (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
}
}
q3dmeshvertex_t;
-typedef struct
+typedef struct q3deffect_s
{
char shadername[Q3PATHLENGTH];
int brushindex;
}
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)