fix serious issue for anyone using r_novis 1

sv_nailhack now defaults to 1. because times have changed (matches mvdsv).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5175 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2017-12-02 22:11:20 +00:00
parent 9cd425e945
commit 65e58c3595
5 changed files with 10 additions and 8 deletions

View file

@ -586,7 +586,7 @@ void CL_SendConnectPacket (netadr_t *to, int mtu,
to = &addr;
if (!NET_StringToAdr (cls.servername, PORT_QWSERVER, to))
{
Con_TPrintf ("Bad server address\n");
Con_TPrintf ("CL_SendConnectPacket: Bad server address \"%s\"\n", cls.servername);
connectinfo.trying = false;
return;
}
@ -899,7 +899,7 @@ void CL_CheckForResend (void)
{
if (!NET_StringToAdr (cls.servername, connectinfo.defaultport, &connectinfo.adr))
{
Con_TPrintf ("Bad server address\n");
Con_TPrintf ("CL_CheckForResend: Bad server address \"%s\"\n", cls.servername);
connectinfo.trying = false;
SCR_EndLoadingPlaque();
return;
@ -999,7 +999,7 @@ void CL_CheckForResend (void)
if (!NET_StringToAdr (host, connectinfo.defaultport, &connectinfo.adr))
{
Con_TPrintf ("Bad server address\n");
Con_TPrintf ("Bad server address \"%s\"\n", host);
connectinfo.trying = false;
SCR_EndLoadingPlaque();
return;

View file

@ -1117,7 +1117,7 @@ typedef struct
int state[MAX_SPLITS]; // low bit is down state
} kbutton_t;
extern kbutton_t in_mlook, in_klook;
extern kbutton_t in_mlook;
extern kbutton_t in_strafe;
extern kbutton_t in_speed;

View file

@ -813,7 +813,7 @@ const char *presetexec[] =
"cl_bob 0.02;"
//these things are perhaps a little extreme
"r_loadlit 0;"
"vid_hardwaregamma 1;"
"vid_hardwaregamma 1;" //auto hardware gamma, for fast fullscreen and usable windowed.
"d_mipcap 0 2;" //gl without anisotropic filtering favours too-distant mips too often, so lets just pretend it doesn't exist. should probably mess with lod instead or something
"r_part_classic_expgrav 1;" //vanillaery
"r_part_classic_opaque 1;"
@ -826,7 +826,7 @@ const char *presetexec[] =
"seta cl_deadbodyfilter 0;"
, //vanilla-esque options.
"gl_texturemode nnl;" //yup, we went there.
"gl_texturemode nll;" //yup, we went there.
"gl_texturemode2d n.l;" //yeah, 2d too.
"r_nolerp 1;"
"cl_sbar 1;"
@ -863,7 +863,7 @@ const char *presetexec[] =
, // nice options
// "r_stains 0.75;"
"gl_texturemode ll;"
"gl_texturemode lll;"
#ifndef MINIMAL
// "r_particlesystem script;"
"r_particledesc \"high tsshaft\";"

View file

@ -2495,6 +2495,8 @@ qbyte *R_MarkLeaves_Q1 (qboolean getvisonly)
if (r_novis.ival)
{
if (curframevis[portal].buffersize < cl.worldmodel->pvsbytes)
curframevis[portal].buffer = BZ_Realloc(curframevis[portal].buffer, curframevis[portal].buffersize=cl.worldmodel->pvsbytes);
vis = cvis[portal] = curframevis[portal].buffer;
memset (curframevis[portal].buffer, 0xff, curframevis[portal].buffersize);

View file

@ -73,7 +73,7 @@ cvar_t sv_mintic = CVARD("sv_mintic","0", "The minimum interval between runn
cvar_t sv_maxtic = CVARD("sv_maxtic","0.1", "The maximum interval between running physics frames. If the value is too low, multiple physics interations might be run at a time (based upon sv_limittics). Set to 0 for fixed-interval ticks, which may be required if ODE is used.");//never run a tick slower than this
cvar_t sv_limittics = CVARD("sv_limittics","3", "The maximum number of ticks that may be run within a frame, to allow the server to catch up if it stalled or if sv_maxtic is too low.");//
cvar_t sv_nailhack = CVARD("sv_nailhack","0", "If set to 1, disables the nail entity networking optimisation. This hack was popularised by qizmo which recommends it for better compression. Also allows clients to interplate nail positions and add trails.");
cvar_t sv_nailhack = CVARD("sv_nailhack","1", "If set to 1, disables the nail entity networking optimisation. This hack was popularised by qizmo which recommends it for better compression. Also allows clients to interplate nail positions and add trails.");
cvar_t sv_nopvs = CVARD("sv_nopvs", "0", "Set to 1 to ignore pvs on the server. This can make wallhacks more dangerous, so should only be used for debugging.");
cvar_t fraglog_public = CVARD("fraglog_public", "1", "Enables support for connectionless fraglog requests");
cvar_t fraglog_details = CVARD("fraglog_details", "1", "Bitmask\n1: killer+killee names.\n2: killer+killee teams\n4:timestamp.\n8:killer weapon\n16:killer+killee guid.\nFor compatibility, use 1(vanilla) or 7(mvdsv).");