git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2397
d7cf8633-e32d-0410-b094-
e92efae38249
#else
void SV_WriteEntitiesToClient (client_t *client, edict_t *clent, sizebuf_t *msg)
{
#else
void SV_WriteEntitiesToClient (client_t *client, edict_t *clent, sizebuf_t *msg)
{
- int e, clentnum, flags, alpha, glowcolor, glowsize, scale, effects;
+ int e, clentnum, flags, alpha, glowcolor, glowsize, scale, effects, modelindex;
int culled_pvs, culled_portal, culled_trace, visibleentities, totalentities;
float alphaf, lightsize;
qbyte *pvs;
int culled_pvs, culled_portal, culled_trace, visibleentities, totalentities;
float alphaf, lightsize;
qbyte *pvs;
lightsize = max(lightsize, 100);
}
lightsize = max(lightsize, 100);
}
if (ent->v.modelindex >= 0 && ent->v.modelindex < MAX_MODELS && pr_strings[ent->v.model])
{
if (ent->v.modelindex >= 0 && ent->v.modelindex < MAX_MODELS && pr_strings[ent->v.model])
{
+ modelindex = ent->v.modelindex;
model = sv.models[(int)ent->v.modelindex];
Mod_CheckLoaded(model);
}
model = sv.models[(int)ent->v.modelindex];
Mod_CheckLoaded(model);
}
s->colormap = ent->v.colormap;
s->skin = ent->v.skin;
s->frame = ent->v.frame;
s->colormap = ent->v.colormap;
s->skin = ent->v.skin;
s->frame = ent->v.frame;
- s->modelindex = ent->v.modelindex;
+ s->modelindex = modelindex;
s->effects = effects;
s->alpha = alpha;
s->scale = scale;
s->effects = effects;
s->alpha = alpha;
s->scale = scale;