common/gl_refrag.c common/gl_rmain.c:

fix to compile with cl_visedicts from qw in uq
common/quakeio.c:
	fix bogus string copying
This commit is contained in:
Bill Currie 2000-02-09 06:27:30 +00:00
parent 1308793cce
commit 88bc2bf209
3 changed files with 1 additions and 13 deletions

View file

@ -224,11 +224,7 @@ void R_StoreEfrags (efrag_t **ppefrag)
if ((pent->visframe != r_framecount) &&
(cl_numvisedicts < MAX_VISEDICTS))
{
#ifdef QUAKEWORLD
cl_visedicts[cl_numvisedicts++] = *pent;
#else // QUAKEWORLD
cl_visedicts[cl_numvisedicts++] = pent;
#endif // QUAKEWORLD
// mark that we've recorded this entity for this frame
pent->visframe = r_framecount;

View file

@ -591,11 +591,7 @@ R_DrawEntitiesOnList ( void ) {
// draw sprites seperately, because of alpha blending
for (i=0 ; i<cl_numvisedicts ; i++) {
#ifdef QUAKEWORLD
currententity = &cl_visedicts[i];
#else
currententity = cl_visedicts[i];
#endif
switch (currententity->model->type) {
case mod_alias:
R_DrawAliasModel (currententity);
@ -611,11 +607,7 @@ R_DrawEntitiesOnList ( void ) {
}
for (i=0 ; i<cl_numvisedicts ; i++) {
#ifdef QUAKEWORLD
currententity = &cl_visedicts[i];
#else
currententity = cl_visedicts[i];
#endif
switch (currententity->model->type) {
case mod_sprite:

View file

@ -13,7 +13,7 @@ QFile *Qopen(const char *path, const char *mode)
zip=1;
continue;
}
p++;
*p++=*mode;
}
*p=0;