Noise reduction in draw vs gl_draw

This commit is contained in:
Joseph Carter 2001-05-22 09:24:56 +00:00
parent 954b2148f7
commit 2b4c31b7ae
2 changed files with 13 additions and 13 deletions

View file

@ -69,8 +69,8 @@ typedef struct cachepic_s {
} cachepic_t;
#define MAX_CACHED_PICS 128
cachepic_t menu_cachepics[MAX_CACHED_PICS];
int menu_numcachepics;
cachepic_t cachepics[MAX_CACHED_PICS];
int numcachepics;
qpic_t *
@ -98,14 +98,14 @@ Draw_CachePic (char *path, qboolean alpha)
int i;
qpic_t *dat;
for (pic = menu_cachepics, i = 0; i < menu_numcachepics; pic++, i++)
for (pic = cachepics, i = 0; i < numcachepics; pic++, i++)
if (!strcmp (path, pic->name))
break;
if (i == menu_numcachepics) {
if (menu_numcachepics == MAX_CACHED_PICS)
if (i == numcachepics) {
if (numcachepics == MAX_CACHED_PICS)
Sys_Error ("menu_numcachepics == MAX_CACHED_PICS");
menu_numcachepics++;
numcachepics++;
strcpy (pic->name, path);
}

View file

@ -69,8 +69,8 @@ typedef struct cachepic_s {
} cachepic_t;
#define MAX_CACHED_PICS 128
cachepic_t menu_cachepics[MAX_CACHED_PICS];
int menu_numcachepics;
cachepic_t cachepics[MAX_CACHED_PICS];
int numcachepics;
qpic_t *
@ -98,14 +98,14 @@ Draw_CachePic (char *path, qboolean alpha)
int i;
qpic_t *dat;
for (pic = menu_cachepics, i = 0; i < menu_numcachepics; pic++, i++)
for (pic = cachepics, i = 0; i < numcachepics; pic++, i++)
if (!strcmp (path, pic->name))
break;
if (i == menu_numcachepics) {
if (menu_numcachepics == MAX_CACHED_PICS)
Sys_Error ("menu_numcachepics == MAX_CACHED_PICS");
menu_numcachepics++;
if (i == numcachepics) {
if (numcachepics == MAX_CACHED_PICS)
Sys_Error ("numcachepics == MAX_CACHED_PICS");
numcachepics++;
strcpy (pic->name, path);
}