git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5059
d7cf8633-e32d-0410-b094-
e92efae38249
static void Mod_Q3BSP_LoadEffects(lump_t *l)
{
q3deffect_t *in;
static void Mod_Q3BSP_LoadEffects(lump_t *l)
{
q3deffect_t *in;
int i, n, count;
in = (void *)(mod_base + l->fileofs);
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);
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->unknown = LittleLong(in->unknown);
}
}
out->unknown = LittleLong(in->unknown);
}
}
typedef struct msurface_s
{
// bounding box for onscreen checks
typedef struct msurface_s
{
// bounding box for onscreen checks
// (only access this if dlightframe is current)
int dlightbits[8]; // q1bsp
// (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
}
// FIXME: collisionmarkframe should be kept in a separate array
int collisionmarkframe; // q3bsp // don't collide twice in one trace
}
+typedef struct q3deffect_s
{
char shadername[Q3PATHLENGTH];
int brushindex;
{
char shadername[Q3PATHLENGTH];
int brushindex;
-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)
#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)
int *data_element3i;
int num_effects;
int *data_element3i;
int num_effects;
- q3meffect_t *data_effects;
+ q3deffect_t *data_effects;
// lightmap textures
int num_lightmaps;
// lightmap textures
int num_lightmaps;