mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-16 16:51:16 +00:00
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:
parent
1308793cce
commit
88bc2bf209
3 changed files with 1 additions and 13 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -13,7 +13,7 @@ QFile *Qopen(const char *path, const char *mode)
|
|||
zip=1;
|
||||
continue;
|
||||
}
|
||||
p++;
|
||||
*p++=*mode;
|
||||
}
|
||||
*p=0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue