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:
Loring Holden 2000-06-12 06:14:00 +00:00
parent 0ebebb9bdb
commit d2a2fbf6cb
3 changed files with 4 additions and 2 deletions

View file

@ -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;
}

View file

@ -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 = "";

View file

@ -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++)