mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
break gamespy instead of gamespy breaking us. disable command packets by
default. If somebody wants gamespy to do its evil, they can say so explicitly.
This commit is contained in:
parent
ca06d3994d
commit
de22be39ba
1 changed files with 9 additions and 5 deletions
|
@ -111,6 +111,7 @@ cvar_t *rcon_password;
|
||||||
cvar_t *rcon_address;
|
cvar_t *rcon_address;
|
||||||
|
|
||||||
cvar_t *cl_writecfg;
|
cvar_t *cl_writecfg;
|
||||||
|
cvar_t *cl_allow_cmd_pkt;
|
||||||
|
|
||||||
cvar_t *cl_timeout;
|
cvar_t *cl_timeout;
|
||||||
|
|
||||||
|
@ -121,10 +122,10 @@ cvar_t *cl_sbar_separator;
|
||||||
cvar_t *cl_hudswap;
|
cvar_t *cl_hudswap;
|
||||||
cvar_t *cl_maxfps;
|
cvar_t *cl_maxfps;
|
||||||
|
|
||||||
cvar_t *cl_cshift_bonus;
|
cvar_t *cl_cshift_bonus;
|
||||||
cvar_t *cl_cshift_contents;
|
cvar_t *cl_cshift_contents;
|
||||||
cvar_t *cl_cshift_damage;
|
cvar_t *cl_cshift_damage;
|
||||||
cvar_t *cl_cshift_powerup;
|
cvar_t *cl_cshift_powerup;
|
||||||
|
|
||||||
cvar_t *lookspring;
|
cvar_t *lookspring;
|
||||||
cvar_t *lookstrafe;
|
cvar_t *lookstrafe;
|
||||||
|
@ -881,7 +882,8 @@ CL_ConnectionlessPacket (void)
|
||||||
|
|
||||||
Con_Printf ("client command\n");
|
Con_Printf ("client command\n");
|
||||||
|
|
||||||
if ((*(unsigned int *) net_from.ip != *(unsigned int *) net_local_adr.ip
|
if (!cl_allow_cmd_pkt->int_val
|
||||||
|
&& (*(unsigned int *) net_from.ip != *(unsigned int *) net_local_adr.ip
|
||||||
&& *(unsigned int *) net_from.ip != htonl (INADDR_LOOPBACK))) {
|
&& *(unsigned int *) net_from.ip != htonl (INADDR_LOOPBACK))) {
|
||||||
Con_Printf ("Command packet from remote host. Ignored.\n");
|
Con_Printf ("Command packet from remote host. Ignored.\n");
|
||||||
return;
|
return;
|
||||||
|
@ -1199,6 +1201,8 @@ CL_Init_Cvars (void)
|
||||||
// LordHavoc: some people like it asking on quit, others don't...
|
// LordHavoc: some people like it asking on quit, others don't...
|
||||||
confirm_quit =
|
confirm_quit =
|
||||||
Cvar_Get ("confirm_quit", "1", CVAR_ARCHIVE, "confirm quit command");
|
Cvar_Get ("confirm_quit", "1", CVAR_ARCHIVE, "confirm quit command");
|
||||||
|
cl_allow_cmd_pkt = Cvar_Get ("cl_allow_cmd_pkt", "0", CVAR_NONE,
|
||||||
|
"set to enable packets from the likes of gamespy");
|
||||||
show_fps = Cvar_Get ("show_fps", "0", CVAR_NONE,
|
show_fps = Cvar_Get ("show_fps", "0", CVAR_NONE,
|
||||||
"display realtime frames per second");
|
"display realtime frames per second");
|
||||||
// Misty: I like to be able to see the time when I play
|
// Misty: I like to be able to see the time when I play
|
||||||
|
|
Loading…
Reference in a new issue