From 241d758c1ff4fb876185d90aa11b3bff3e77d107 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 4 Jun 2012 11:00:23 +0200 Subject: [PATCH] in anticheat compiles, reject input from stdin --- sys_linux.c | 4 +++- sys_sdl.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys_linux.c b/sys_linux.c index 6e6afded..70fe819d 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -76,7 +76,9 @@ void Sys_PrintToTerminal(const char *text) char *Sys_ConsoleInput(void) { - //if (cls.state == ca_dedicated) +#ifdef ANTICHEAT + if (cls.state == ca_dedicated) +#endif { static char text[MAX_INPUTLINE]; static unsigned int len = 0; diff --git a/sys_sdl.c b/sys_sdl.c index 13be11ea..c00cf408 100644 --- a/sys_sdl.c +++ b/sys_sdl.c @@ -83,7 +83,9 @@ void Sys_PrintToTerminal(const char *text) char *Sys_ConsoleInput(void) { -// if (cls.state == ca_dedicated) +#ifdef ANTICHEAT + if (cls.state == ca_dedicated) +#endif { static char text[MAX_INPUTLINE]; int len = 0; -- 2.39.2