diff --git a/Quake/cl_main.c b/Quake/cl_main.c index bee4d5ea..d3c0beda 100644 --- a/Quake/cl_main.c +++ b/Quake/cl_main.c @@ -153,7 +153,7 @@ CL_EstablishConnection Host should be either "local" or a net address to be passed on ===================== */ -void CL_EstablishConnection (char *host) +void CL_EstablishConnection (const char *host) { if (cls.state == ca_dedicated) return; diff --git a/Quake/client.h b/Quake/client.h index f5be0bbc..da251c18 100644 --- a/Quake/client.h +++ b/Quake/client.h @@ -296,7 +296,7 @@ void CL_DecayLights (void); void CL_Init (void); -void CL_EstablishConnection (char *host); +void CL_EstablishConnection (const char *host); void CL_Signon1 (void); void CL_Signon2 (void); void CL_Signon3 (void); diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index bb82fe43..38577ace 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -1182,6 +1182,7 @@ VID_Init */ void VID_Init (void) { + static char vid_center[] = "SDL_VIDEO_CENTERED=center"; const SDL_VideoInfo *info; int i, existingmode; int basenummodes, width, height, bpp, findbpp, done; @@ -1207,7 +1208,7 @@ void VID_Init (void) if (SDL_InitSubSystem(SDL_INIT_VIDEO) == -1) Sys_Error("Could not initialize SDL Video"); - SDL_putenv("SDL_VIDEO_CENTERED=center"); + SDL_putenv (vid_center); VID_InitDIB(); basenummodes = nummodes = 1;