From a735b92babb1cde1f2570516197be71b2141e68e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 18 May 2001 18:04:55 +0000 Subject: [PATCH] kill the allowskybox varible. it wasn't ever checked anyway --- nq/source/gl_rmisc.c | 4 ---- nq/source/sw_rmisc.c | 3 --- qw/include/client.h | 2 -- qw/source/cl_main.c | 8 +------- qw/source/gl_rmisc.c | 4 ---- qw/source/sw_rmain.c | 2 -- qw/source/sw_rmisc.c | 3 --- 7 files changed, 1 insertion(+), 25 deletions(-) diff --git a/nq/source/gl_rmisc.c b/nq/source/gl_rmisc.c index 8988e24f4..2386945f9 100644 --- a/nq/source/gl_rmisc.c +++ b/nq/source/gl_rmisc.c @@ -55,7 +55,6 @@ varray_t2f_c4f_v3f_t varray[MAX_VARRAY_VERTS]; qboolean VID_Is8bit (void); -qboolean allowskybox; // allow skyboxes? --KB void R_InitBubble (void); extern cvar_t *gl_lerp_anim; @@ -147,9 +146,6 @@ R_LoadSky_f (void) void R_Init (void) { - allowskybox = false; // server will decide if this is - // allowed --KB - Cmd_AddCommand ("timerefresh", R_TimeRefresh_f, "Tests the current refresh rate for the current location"); Cmd_AddCommand ("envmap", R_Envmap_f, "No Description"); diff --git a/nq/source/sw_rmisc.c b/nq/source/sw_rmisc.c index 6e2f65ec6..fabc24e37 100644 --- a/nq/source/sw_rmisc.c +++ b/nq/source/sw_rmisc.c @@ -43,9 +43,6 @@ #include "server.h" #include "view.h" -qboolean allowskybox; // whether or not to allow skyboxes --KB - - void R_CheckVariables (void) { diff --git a/qw/include/client.h b/qw/include/client.h index a7ae79685..202b3d24a 100644 --- a/qw/include/client.h +++ b/qw/include/client.h @@ -327,8 +327,6 @@ extern dlight_t cl_dlights[MAX_DLIGHTS]; extern qboolean nomaster; extern char *server_version; // version of server we connected to -extern qboolean allowskybox; - extern double realtime; //============================================================================= diff --git a/qw/source/cl_main.c b/qw/source/cl_main.c index 6bdc08909..9398739d3 100644 --- a/qw/source/cl_main.c +++ b/qw/source/cl_main.c @@ -610,13 +610,7 @@ CL_FullServerinfo_f (void) Con_Printf ("Invalid standards version: %s", p); } if ((p = Info_ValueForKey (cl.serverinfo, "skybox")) && *p) { - if (!strcaseequal (p, "none")) { - allowskybox = false; - } else { - allowskybox = true; - } - } else { - allowskybox = false; + //FIXME didn't actually do anything anyway } } diff --git a/qw/source/gl_rmisc.c b/qw/source/gl_rmisc.c index 0bdc1ca74..3455576e1 100644 --- a/qw/source/gl_rmisc.c +++ b/qw/source/gl_rmisc.c @@ -55,7 +55,6 @@ varray_t2f_c4f_v3f_t varray[MAX_VARRAY_VERTS]; qboolean VID_Is8bit (void); -qboolean allowskybox; // allow skyboxes? --KB void R_InitBubble (void); extern cvar_t *gl_lerp_anim; @@ -145,9 +144,6 @@ R_LoadSky_f (void) void R_Init (void) { - allowskybox = false; // server will decide if this is - // allowed --KB - Cmd_AddCommand ("timerefresh", R_TimeRefresh_f, "Tests the current refresh rate for the current location"); Cmd_AddCommand ("envmap", R_Envmap_f, "No Description"); diff --git a/qw/source/sw_rmain.c b/qw/source/sw_rmain.c index 22204e0c4..93f5dc346 100644 --- a/qw/source/sw_rmain.c +++ b/qw/source/sw_rmain.c @@ -150,8 +150,6 @@ R_Init (void) { int dummy; - allowskybox = false; // server decides this --KB - // get stack position so we can guess if we are going to overflow r_stack_start = (byte *) & dummy; diff --git a/qw/source/sw_rmisc.c b/qw/source/sw_rmisc.c index 6aff3de87..6122c278d 100644 --- a/qw/source/sw_rmisc.c +++ b/qw/source/sw_rmisc.c @@ -43,9 +43,6 @@ #include "render.h" #include "sbar.h" -qboolean allowskybox; // whether or not to allow skyboxes --KB - - void R_CheckVariables (void) {