summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/server.h1
-rw-r--r--src/server/sv_client.c4
-rw-r--r--src/server/sv_init.c1
-rw-r--r--src/server/sv_main.c1
4 files changed, 3 insertions, 4 deletions
diff --git a/src/server/server.h b/src/server/server.h
index 45e199f7..8eb43550 100644
--- a/src/server/server.h
+++ b/src/server/server.h
@@ -243,7 +243,6 @@ extern cvar_t *sv_maxRate;
extern cvar_t *sv_minPing;
extern cvar_t *sv_maxPing;
extern cvar_t *sv_pure;
-extern cvar_t *sv_floodProtect;
extern cvar_t *sv_lanForceRate;
//===========================================================
diff --git a/src/server/sv_client.c b/src/server/sv_client.c
index 84ce86a0..cbc2e8c9 100644
--- a/src/server/sv_client.c
+++ b/src/server/sv_client.c
@@ -1138,6 +1138,7 @@ static qboolean SV_ClientCommand( client_t *cl, msg_t *msg ) {
// but not other people
// We don't do this when the client hasn't been active yet since its
// normal to spam a lot of commands when downloading
+#if 0 // flood protection in game for trem
if ( !com_cl_running->integer &&
cl->state >= CS_ACTIVE &&
sv_floodProtect->integer &&
@@ -1145,7 +1146,8 @@ static qboolean SV_ClientCommand( client_t *cl, msg_t *msg ) {
// ignore any other text messages from this client but let them keep playing
// TTimo - moved the ignored verbose to the actual processing in SV_ExecuteClientCommand, only printing if the core doesn't intercept
clientOk = qfalse;
- }
+ }
+#endif
// don't allow another command for one second
cl->nextReliableTime = svs.time + 1000;
diff --git a/src/server/sv_init.c b/src/server/sv_init.c
index 3d08b6ea..15c3de0c 100644
--- a/src/server/sv_init.c
+++ b/src/server/sv_init.c
@@ -580,7 +580,6 @@ void SV_Init (void) {
sv_maxRate = Cvar_Get ("sv_maxRate", "0", CVAR_ARCHIVE | CVAR_SERVERINFO );
sv_minPing = Cvar_Get ("sv_minPing", "0", CVAR_ARCHIVE | CVAR_SERVERINFO );
sv_maxPing = Cvar_Get ("sv_maxPing", "0", CVAR_ARCHIVE | CVAR_SERVERINFO );
- sv_floodProtect = Cvar_Get ("sv_floodProtect", "1", CVAR_ARCHIVE | CVAR_SERVERINFO );
// systeminfo
Cvar_Get ("sv_cheats", "1", CVAR_SYSTEMINFO | CVAR_ROM );
diff --git a/src/server/sv_main.c b/src/server/sv_main.c
index d017e7b1..be579268 100644
--- a/src/server/sv_main.c
+++ b/src/server/sv_main.c
@@ -49,7 +49,6 @@ cvar_t *sv_maxRate;
cvar_t *sv_minPing;
cvar_t *sv_maxPing;
cvar_t *sv_pure;
-cvar_t *sv_floodProtect;
cvar_t *sv_lanForceRate; // dedicated 1 (LAN) server forces local client rates to 99999 (bug #491)
/*