mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 04:01:17 +00:00
cmd.c - use (var = Cvar_FindVar(buf)) != 0 instead of (var = Cvar_FindVar(buf))
cvar.c - include strings.h for AIX gl_warp.c - remove unneeded skytexturenum variable
This commit is contained in:
parent
0ebebb9bdb
commit
d2a2fbf6cb
3 changed files with 4 additions and 2 deletions
|
@ -874,7 +874,7 @@ skipwhite:
|
|||
data++;
|
||||
buf[i++] = c;
|
||||
buf[i] = 0;
|
||||
if ((var = Cvar_FindVar(buf)))
|
||||
if ((var = Cvar_FindVar(buf)) != 0)
|
||||
bestvar = var;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,9 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
cvar_t *cvar_vars;
|
||||
char *cvar_null_string = "";
|
||||
|
|
|
@ -1077,7 +1077,6 @@ void R_InitSky_32 (byte *src, int bytesperpixel)
|
|||
unsigned transpix;
|
||||
int r, g, b;
|
||||
unsigned *rgba;
|
||||
extern int skytexturenum;
|
||||
|
||||
if (bytesperpixel == 4) {
|
||||
for (i = 0;i < 128;i++)
|
||||
|
|
Loading…
Reference in a new issue